On my Mac I have two different indications of the activated JAVA version
$ uname -a Darwin Mr-MBP.lan 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
Via the command line
$ java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
unfortunately via the GUI
GUI java indication is 1.8
So I tried to do it via command, but then it doesn't find the 1.8 version (it is also not in the directory of the JVMs)
$ ls /Library/Java/JavaVirtualMachines/ jdk1.7.0_45.jdk $ /usr/libexec/java_home -v 1.8.0_45 --exec javac -version Unable to find any JVMs matching version "1.8.0_45". javac 1.7.0_45
A reboot didn't solve the problem.
Anybody some suggestions?