Would you like toīecause I did not want to install old Java version, I used the following workaround: To open “Eclipse.app” you need a Java SE 6 runtime. When I start a Java program (like Eclipse) via the GUI, I get:
In the console / in Terminal Java 7 works fine. I downloaded and installed the JDK 1.7 from Oracle. The alternative is to fuzz around with Apple’s insane maze of hyperlinks, but honestly life is too short to bother. Then add that to your PATH: export PATH=$JAVA_HOME/bin:$PATH I also set my JAVA_HOME to point to where jdk_1.7.0_xx.jdk was installed: export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home" (copied here as it was mentioned that “above” may eventually not make sense as answers are re-sorted). System/Library/Frameworks/amework/Versions/CurrentJDK Regarding IntelliJ IDEA – that will still ask you to install Java 6 as it apparently needs an older class loader or something: just follow the instructions when the dialog pop-up appears and it will install the JDK 6 in the right place.Īfterwards, you will need to do the sudo ln -snf mentioned in the answer above: sudo ln -nsf /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents \
#Java for os x 2015 001 download#
The right place to download the JDK for Java 7 is Java SE Downloads.Īll the other links provided above, as far as I can tell, either provide the JRE or Java 6 downloads (incidentally, if you want to run Eclipse or other IDEs, like IntelliJ IDEA, you will need the JDK, not the JRE). bashrc to have java permanently in your Terminal: echo export JAVA_HOME=\"/Library/Internet Plug-Ins/ugin/Contents/Home\" > ~/.bashrc You can add the export JAVA_HOME line in your. That’s the cleanest way I found to install the latest JRE.
Update: As mentioned in the comments below, there is a newer version of this same package: The solution was to manually download and install the official Java package for OS X, which is in Java for OS X 2013-005. The new Mavericks (10.9) showed me the “Requesting install”, but nothing happened.