Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OS X Java Update: where is my jdk?

I've installed on my iMac (Mac OS X 10.6.6) the Java update which contains the version 1.6.0_24 of the jdk. I think this update has changed the directory structure of the jdk, so now I'm not able to configure it on eclipse. Before the update my eclipse were linked to this path: /System/Library/Frameworks/JavaVM.Framework/Versions/Current/Home which actually seems wrong. Now I'm not able to link my eclipse to the jdk. Maybe this is the right path: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, but 1.6.0.jdk isn't a directory, so I'm not able to choose it in eclipse.

Has anyone experienced this problem? How can I solve it?

like image 981
javanna Avatar asked Mar 11 '11 10:03

javanna


People also ask

Where is the Java JDK on Mac?

In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-10. jdk/Contents/Home . The root directory of the JDK software installation.

Where can I find my Java JDK?

The JDK software is installed on your computer, for example, at C:\Program Files\Java\jdk1. 6.0_02. You can move the JDK software to another location if desired.

How do I know if Java JDK is installed?

1. Open command prompt and enter “java –version”. If installed version number is displayed.

Where is JDK 11 installed Mac?

The modular runtime image of JDK 11 contains the following folders: Note: In macOS, the JDK installation path is /Library/Java/JavaVirtualMachines/jdk-interim.


2 Answers

For me following jdk link is working fine on Eclipse:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

enter image description here

like image 179
Muhammad Nabeel Arif Avatar answered Oct 20 '22 06:10

Muhammad Nabeel Arif


It was my fault. I had also a jdk 1.5 manually installed and the update moved it away. Probably I made a mistake restoring my jdk-1.5 to its correct location. To solve my issue I just had to restore the symbolic links /System/Library/Frameworks/JavaVM.Framework/Versions/CurrentJDK, which has to point to /System/Library/Frameworks/JavaVM.Framework/Version.

like image 6
javanna Avatar answered Oct 20 '22 07:10

javanna