java -version
from a terminal), but this version comes as “Java for Mac OS X 10.7 Update 1” through Apple’s Software Update. System Preferences
and click Software Update
. Installed Software
and search the list for the latest Java update (here “Update 1”). /System/Library/Frameworks/JavaVM.framework/
. However, this directory seems to be deprecated. /Library/Java/JavaVirtualMachines/
and check whether a package called like “1.6.0_29-b11-402.jdk” can be found there. In this example, the Java version would be “1.6.0_29”. Java
–>Installed JREs
. Search...
button, would find the newly installed JDK. Unfortunately, there seems to be a bug in Eclipse Ingido (3.7 – and probably in earlier versions, too) that prevents this button from working correctly. Clicking on it doesn’t do anything when there’s already one (and only one) JRE listed here; see screenshot. Duplicate...
button)Search...
. This should add two new entries to the list (see next screenshot)./System/Library/Java/...
. Trying to do so will delete the other entry./System/Library/Java/...
) from the list. Installed JREs
in the Eclipse Settings.Add...
Next...
/Library/Java/JavaVirtualMachines/<javaversion>.jdk/Contents/Home/
under JRE Home
. Note: You need to type/paste the directory directly into the field. You can’t use the Directory...
as the directories in the JavaVirtualMachines
directory are so called “Mac OS X packages”. These directories are displayed as files and you can’t browse their contents from within the dialog.Finish
.