I downloaded JDK7u4 for Mac OS X, and installed it.
Now I would like to setup Eclipse to use this JDK. In Preferences > Java > Installed JREs
what location should I set for JRE home? I installed it on the default location.
In macOS, the JRE installation path is /Library/Internet Plug-Ins/JavaAppletPlugin. plugin/Contents/Home/ . The root directory of the JRE software installation. This directory contains README, and other JRE folders.
JAVA_HOME is essentially the full path of the directory that contains a sub-directory named bin which in turn contains the java. For Mac OSX – it is /Library/Java/Home.
Determining the JRE Version Installed on macOS The JRE version installed on the system can be determined in one of two ways: From System Preferences, and then the Other section, click the Java icon. This starts the Java Control Panel. You then click About to display the version information.
See Oracles's JDK release notes
In the "JRE Home:" field, type "/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home"
Note you will have to type it as the open dialog finds a OSX bundle at "/Library/Java/JavaVirtualMachines/1.7.0.jdk/ and will not browse into it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With