我把 JAVA_HOME 从8改成了 7 , 为什么还是 显示的8啊 !
E:\sv0\jars>java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
JAVA_HOME 是
E:\Java\jdk7
path 是:
C:\ProgramData\Oracle\Java\javapath;.;%HADOOP_HOME%\bin;f:\aspectj1.8\bin;d:\program files (x86)\imagemagick-6.2.6-q16;.;%M2_HOME%\bin;%GRADLE_HOME%\bin;E:\work\ha\download\hadoop-common-2.2.0-bin-master\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%JAVA_HOME%\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;D:\Program Files\TortoiseSVN\bin;d:\Program Files (x86)\Ulteo\OVD Application Server\plus;C:\Program Files (x86)\Ulteo\OVD Application Server\plus;D:\Program Files (x86)\Apache\php-5.4.35-Win32-VC9-x86;C:\Temp\IBM\SQLLIB\BIN;C:\Temp\IBM\SQLLIB\FUNCTION;C:\Temp\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\QuickTime\QTSystem\;E:\Java\apache\apache-ant-1.9.6\bin;D:\Program Files (x86)\scala\bin;F:\Go\bin;d:\Program Files\Git\cmd
classpath 是:
f:\aspectj1.8\lib\aspectjrt.jar;.;%JAVA_HOME%\lib;C:\Temp\IBM\SQLLIB\java\db2java.zip;C:\Temp\IBM\SQLLIB\java\db2jcc.jar;C:\Temp\IBM\SQLLIB\java\sqlj.zip;C:\Temp\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\Temp\IBM\SQLLIB\bin;C:\Temp\IBM\SQLLIB\java\common.jar;C:\Program Files (x86)\Java\jre1.8.0_25\lib\ext\QTJava.zip
path 的第一个是 C:\ProgramData\Oracle\Java\javapath , 这个oracle是新安装的, 是java 8 :
原来如此!