Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What JRE home to set in Eclipse for JDK7u4 on Mac OS X?

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.

like image 818
Jonas Avatar asked Apr 27 '12 19:04

Jonas


People also ask

How do I find JRE path on Mac?

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.

What is Java_home in Mac?

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.

Is JRE installed on my Mac?

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.


1 Answers

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

like image 164
mmmmmm Avatar answered Sep 28 '22 01:09

mmmmmm