![]() Note: I’ve had manually set the “JAVA_HOME” and “JRE_HOME” variables in the “.profile” file. This immediately fixed the issue and all terminal applications worked again. Ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_11.jdk/Contents/ CurrentJDK So, in order to point it to Java 7 I’ve had to do the following: rm CurrentJDK Digging around a bit showed me that the installation created sym links in the “/System/Library/Frameworks/amework/Versions/” directory.Īs it turns out the “CurrentJDK” linked to the “old” Java 6 (1.6) installation. One of the problems, I’ve had was that no application on the terminal actually picked up the Java 7 JDK. Now the above should all be according to the book, but as things are when it comes to Java they are never “click and go”. Now, if you use “java -version” it should actually give the output that it used Java 7. After that, you can use the following command to make Java 7 the active version to use: /usr/libexec/java_home -v 1.7.0_11 -exec javac -version ![]() Once downloaded simply run the installer and it (should) install Java 7 properly on your system. ![]() ![]() As Apple actually only installs Java 6 (1.6.x) one needs to get Java 7 from the Oracle website at the Java SE download site. Today I set out to get Java 7 JDK running on MacOS X Mountain Lion (10.8.2).
0 Comments
Leave a Reply. |