On my Mac I have two different indications of the activated JAVA version$ uname -aDarwin 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_64Via the command line $ java -versionjava version 1.7.0_45Java(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.8So 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 -versionUnable to find any JVMs matching version 1.8.0_45.javac 1.7.0_45A reboot didn't solve the problem.Anybody some suggestions?Thanks.
Java version is different in GUI and command line
java;macintosh