Wednesday, November 21, 2012

Installing JDK 7 on Mac OS X


To get JDK 7 up,
Surgery required.  So, I headed over to:
/System/Library/Frameworks/JavaVM.framework/Versions
This is where the system jvm's are stored.  You'll notice a symbolic link for CurrentJDK.  It probably points to:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
You're going to want to point that to the new JDK, which java_home tells us is located in:
bone@zen:/usr/libexec$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
So, the magic commands you need are:
bone@zen:/System/Library/Frameworks/JavaVM.framework/Versions$ sudo rm CurrentJDK
bone@zen:/System/Library/Frameworks/JavaVM.framework/Versions$ sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/ CurrentJDK
Then, you should be good:
bone@zen:/System/Library/Frameworks/JavaVM.framework/Versions$ java -version 
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

49 comments:

Kirk True said...

Just pulled the latest Cassandra to get back into hacking it and noticed it's using JDK 7. Thanks for getting me unstuck. Thanks!

João said...

Thanks! It solved my maven issue! ;)

mahasiswa teladan said...

hi...Im student from Informatics engineering nice article,
thanks for sharing :)

sarah taylor said...

Thanks for sharing such informative article on Java technology. It is most preferred technology among developers to create stunning mobile application fast and easy. It also created massive career opportunity for aspiring professionals. JAVA J2EE Training in Chennai

john son said...

Your posts is really helpful for me.Thanks for your wonderful post. I am very happy to read your post. It is really very helpful for us and I have gathered some important information from this blog.

Best JAVA Training Institute in Chennai

yuvaraj v said...

Thanks for getting me unstuck. Thanks!hadooptrainingchennai..Very awesome blogs!!!

Michael Chen said...

Thanks. java_home was the command I needed to figure out the library path :-0

dhanamlakshmi palu said...

This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to undestood. Thank you for giving information.
AWS course chennai | AWS Certification in chennai | AWS Certification chennai

Suranka VMware said...

VMWare course chennai |
I gathered a lot of information through this article.Every example is easy to undestandable and explaining the logic easily.Thanks!

VMWare certification in chennai | VMWare certification chennai

Dagdgsd Dffbd said...

Nice article, thanks for the information. It's very complete information. I will bookmark for next reference
jaring futsal | jaring golf | jaring pengaman proyek |
jaring pengaman bangunan | jaring pengaman gedung
http://www.jual-jaring.blogspot.com/
http://www.agen-jaring.blogspot.com/
http://www.pancasamudera-safetynet.blogspot.com/
http://www.toko-jaring.blogspot.com/
http://www.pusat-jaring.blogspot.com/
http://jualjaringpengaman.blogspot.com/
https://pancasamudera.wordpress.com/
https://pasangjaringfutsal.wordpress.com/
https://jualtambangmurah.wordpress.com/
https://tokojaring.wordpress.com/
https://jualjaringfutsal.wordpress.com/
https://jaringfutsal.wordpress.com/

Jamuna Pandy said...

Hi, This is Jamuna from Chennai. I have read your blog and I got some knowledgeable information through this blog. Really useful blog. Keep update your blog.

Regards...
Java Training in Chennai

Anu Sri said...
This comment has been removed by the author.
Anu Sri said...

Thanks for sharing this awesome information with us. It was really helpful.

best web designing course in chennai

Kang Yudi said...

It's very useful and informative, thank you so much.
iklan baris gratis

Andrew Son said...

There are lots of information about latest technology and how to get trained in them, like Hadoop Training Chennai have spread around the web, butthis is a unique one according to me. The strategy you have updated here will make me to get trained in futuretechnologies(Hadoop Training in Chennai). By the wayyou are running a great blog. Thanks for sharing this.

Raksha said...

Thank you for the informative post. will try this method to install jdk in my mac.
Web designing course in Chennai | Web designing course in Chennai

Roshini RS said...

This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.
Regards,
Informatica institutes in Chennai|Informatica training institutes in Chennai|Informatica training in chennai

Harshita said...

Thank you for this detailed article on Web designing courses. I’m aspiring to do Web designing courses.

Harshita said...
This comment has been removed by the author.
Yasmin Priya said...

Your blog is helpful for freshers. Keep update your blog. I have completed core java training at TIS academy. They give job oriented training for all students. If anyone want to get Java Training in Chennai reach us TIS academy. Rated as No.1 IT training institute in Chennai.

Melisa said...

Thanks for sharing this pretty post to our knowledge, SAS is a program that assists to retrieve, managing and uploading the data & simply it’s an integration system of software for performing these actions, thanks for taking your time to discuss about this topic.
Regards,
sas training in Chennai|sas course in Chennai|sas training chennai

varshini devi said...

Thanks Admin…. For sharing such a useful post, I hope it’s useful to many individuals for developing their skill to get strong career soon.
Regards,
ccna course in Chennai|ccna training in Chennai|ccna training institute in Chennai

Bay Max said...

Web technology has evolved so much in the past years and it is being the part of a company's growth for a long time(Web designing course in chennai). It is explicitly printed in the above content. I really love the way you have started writing this article(Web design training). It is the skill that every blogger require. Thanks for sharing this in here once again. Keep blogging like this(Web designing training in chennai).

Roshini RS said...

Thanks for sharing this niche useful informative post to our knowledge, Actually SAP is ERP software that can be used in many companies for their day to day business activities it has great scope in future.
Regards,
SAP training in chennai|SAP course in chennai|SAP Training in Chennai|sap training in Chennai

Savitha said...

Really awesome blog. Your blog is really useful for me.
Thanks for sharing this informative blog. Keep update your blog.
Oracle Training In Chennai

Diya Patel said...

Best Java Training Institute In ChennaiThis information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

geethu said...

Thanks for sharing this unique and informative content which provided me the required information.
PHP Training in Chennai | PHP Training Center in Chennai | FITA Velachery

Priya said...


Web designing is the process of building our website in an attractive way that includes series of steps like planning, creation and updation of our website.
web designing course in chennai | web designing training in chennai | web designing courses in chennai.

geethu said...


Thanks for sharing this unique and informative content which provided me the required information.
PHP Training in Chennai | PHP Course in Chennai | FITA Velachery

mary Brown said...

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai | Core Java Training in Chennai

Online Java Training | Java EE Training Institute in Chennai

Vasu N said...


Thank you for sharing this knowledge in a blogpost.Really simple and even more effective and this worked great, very useful tips
http://hadooptraininginhyderabad.co.in/salesforce-training-in-hyderabad/

Nikshitha S said...

Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
Hadoop Training Chennai | Hadoop course in Chennai

Iqbal Dlk said...

be projects in chennai

2016 ieee java projects in chennai

lenovo laptop service center chennai

Priya said...

Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
oracle training in chennai | oracle training institutes in chennai

apttree said...

very useful information
Bank exam questions and answers

SBI Po exam questions and answers
Vao exam questions and answers

Iqbal Dlk said...

lenovo laptop service center chennai
lenovo thinkpad service center chennai
lenovo ideapad service center chennai
lenovo laptop service center in vadapalani

mythily mythu said...

good. the best msbi training in chennai»
the best msbi training in chennai.

mythily mythu said...

very good. the best informix training in chennai» the best informix training in chennai.

mythily mythu said...

good information.the best msbi training in chennai»
the best msbi training in chennai.

mythily mythu said...

good.the best informatica training in chennai» the best informatica training in chennai

mythily mythu said...

nice. the best oracle-apps- dba training in chennai» the best oracle-apps-dba training in chennai.

Ajay Kumar said...

good information i like the post Oracle DBA training in chennai

for IT the said...

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

Java Online Training Java Online Training Core Java 8 Training in Chennai java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

for IT the said...

Java Training Institutes Java Training Institutes Java EE Training in Chennai Java EE Training in Chennai Java Spring Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai Core Java Training Institutes in Chennai Core Java Training Institutes in Chennai

1croreprojects said...

be projects in chennai

ieee java projects in chennai

ieee dotnet projects in chennai

ns2 projects in chennai

bulk projects in chennai

yasar said...

ece projects in chennai

embedded projects chennai

vlsi projects chennai
embedded training in chennai
matlab training in chennai

Iqbal Dlk said...

Thanks for sharing this valuable information to our vision

hotels near us consulate chennai
hotels near uk embassy chennai
hotels near apollo hospital chennai
hotels near german consulate chennai

1croreprojects said...

Thanks for sharing this valuable information.
ieee java projects in chennai
ieee dotnet projects in chennai
mba projects in chennai
be projects in chennai
ns2 projects in chennai
mca projects in chennai
bulk projects in chennai
bsc projects in chennai
msc projects in chennai

Priya R said...

Excellent post!!!. The strategy you have posted in this technology helped me to get into the next level and had lot of information in it.
Android training in Chennai | Android course in Chennai