![]() ![]() With the following java_home command you permanently switch over to Java 1.8 64 bit: endor-2:~ garex$ java -fullversionĮndor-2:~ garex$ /usr/libexec/java_home -v 1.8 -d64 Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home Take a closer look at this: endor-2:~ garex$ /usr/libexec/java_home -Vġ.8.0_45, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Homeġ.7.0_71, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home In general, for all shell driven applications there is one environment variable you usually set for this and it's called JAVA_HOME. So when each application comes with its own JDK/JRE, you need to tell in some configuration which one to use. ![]() For instance, HP Peregrine Service Center does that. Oracle and its installers install their JDK/JRE in /Library/Internet Plug-Ins/ugin/Contents/Home for the webbrowser plugin and the full JRE/JDK into /Library/Java/JavaVirtualMachines/.Īnd additionally, software packages can come with their own JDK/JRE package. Therefore, you can have multiple versions installed and use multiple versions in Xcode or other IDE. The Apple packaged JRE/JDK is always installed in /System/Library/Frameworks/amework/Versions/Current, where "Current" is a link pointing to the actual version. ![]() In some terms this is misunderstanding, but I hope it gets clearer soon:
0 Comments
Leave a Reply. |