Installed new jdk on mac but
- INSTALLED NEW JDK ON MAC BUT HOW TO
- INSTALLED NEW JDK ON MAC BUT INSTALL
- INSTALLED NEW JDK ON MAC BUT PLUS
Goto "Control Panel" ⇒ "Programs" ⇒ "Programs and Features" ⇒ Un-install ALL programs begin with "Java", such as "Java SE Development Kit. If you have previously installed older version(s) of JDK/JRE, un-install ALL of them.
INSTALLED NEW JDK ON MAC BUT INSTALL
Although you can install multiple versions of JDK/JRE concurrently, it is messy. I recommend that you install only the latest JDK.
INSTALLED NEW JDK ON MAC BUT HOW TO
How To Install JDK on Windows Step 0: Un-Install Older Version(s) of JDK/JRE
Since you are supposed to write Java Programs, you should install JDK, which includes JRE.
INSTALLED NEW JDK ON MAC BUT PLUS
JDK (Java Development Kit), which includes JRE plus the development tools (such as compiler and debugger), is need for writing as well as running Java programs. JRE (Java Runtime) is needed for running Java programs. If you don't get the newest Java version when /usr/libexec/java_home is called, you can try a restart of your Mac, so that the system reload its current load of the /usr/bin/java link/shortcut to /System/Library/Frameworks/JavaVM.Java Development Kit (JDK), officially named "Java Platform Standard Edition ( Java SE)", which is freely available from Sun Microsystems (now part of Oracle), is needed for writing Java programs.
usr/libexec/java_home -v '1.8*' will give you JAVA_HOME of Java 8 (if installed)Īnd if /usr/libexec/java_home is called without any parameters you should get the current enabled (newest) Java version. usr/libexec/java_home -v '1.7*' will give you JAVA_HOME of Java 7 (if installed) usr/libexec/java_home -v '1.6*' will give you JAVA_HOME of Java 6 usr/libexec/java_home -verbose will give you all installed versions with path. Java 7 and Java 8 are installed under /Library/Java/JavaVirtualMachines, and to get informations about the installed Java VM's you can use the /usr/libexec/java_home command, which is a link/shortcut to /System/Library/Frameworks/amework/Versions/Current/Commands/java_home. The java control panel applet reports 1.8, but in /Library/Internet\ Plug-Ins/ugin/ Lrwxr-xr-x 1 root wheel 59 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/ContentsĪlso: $ /System/Library/Frameworks/amework/Versions/Current/Commands/java -fullversion Lrwxr-xr-x 1 root wheel 10 1.6.0 -> CurrentJDKĭrwxr-xr-x 8 root wheel 272 May 13 10:21 A Lrwxr-xr-x 1 root wheel 10 1.6 -> CurrentJDK Lrwxr-xr-x 1 root wheel 10 1.5.0 -> CurrentJDK Lrwxr-xr-x 1 root wheel 10 1.5 -> CurrentJDK Lrwxr-xr-x 1 root wheel 10 1.4.2 -> CurrentJDK Lrwxr-xr-x 1 root wheel 10 1.4 -> CurrentJDK Here is what is installed $ ls -l /System/Library/Frameworks/amework/Versions/ Lrwxr-xr-x 1 root wheel 74 /usr/bin/java -> /System/Library/Frameworks/amework/Versions/Current/Commands/java I installed jdk 1.8.0 u5, but the command line java is reporting 1.7: $ java -fullversion