The normal JDK is actually a bit hard to find; as it requires a separate download. The location of the JDK has also recently moved leaving much of the documentation out of date.
- Lion does not come with a JDK; you can go and download one directly from http://connect.apple.com. Yes you need to sign up and login with your apple id. The download column is over on the right; and you should be able to find your way.
- The jdk is installed into a different location then pervious. This will result in IDEs (such as Eclipse) being unable to locate source code and javadocs.
At the time of writing the JDK ended up here:
Please go ahead and have a look to confirm where your JDK ended up; this will no doubt change over time.
- Open up eclipse preferences and go to Java --> Installed JREs page
- Rather than use the "JVM Contents (MacOS X Default) we will need to use the above JDK location
- At the time of writing the Search button was not aware of the new JDK location; we we will need to click on the Add button and hunt it down ourselves.
- From the Add JRE wizard choose "MacOS X VM" for the JRE Type
For the JRE Definition Page we need to fill in the following:
The other fields will now auto fill, with the default JRE name being "Home". You can quickly correct this to something more meaningful:
- Finish the wizard and return to the Installed JREs page
- Choose "System JDK" from the list
I downloaded the JDK for Mac OSX and found the file /Library/Java/JavaVirtualMachines/1.6.0_27-b07-393.jdk/Contents/Home
But I still cannot open Eclipse. I downloaded Eclipse from the following site: http://see.stanford.edu/see/materials/icspmcs106a/software.aspx
What should I do?
Just pick the right MAC Lion installation file from the Eclipse site and you will be fine, with no extra installation issues.
hello I just migrate from windows to mac, I was using eclipse in windows and now using cold fusion builder, Can I develop coldfusion with eclipse(aptana) with this instructions?
Thanks in advance.
As of today, Apple installed the JDK under:
After installing the JDK for Mac OSX I created some symlinks to make it work.
Basically what I did:
sudo ln -s /Library/Java/JavaVirtualMachines JavaVirtualMachines
sudo ln -s 1.6.0_32-b05-420.jdk 1.6.0.jdk
Note: Replace 1.6.0_32-b05-420.jdk with the version you installed.
i wont able to connect with oracle weblogic server it doesnt find path of jdk in mac os xlion what to do now ?
Post a Comment