![]() When I run java -version it always appear jdk 8. I have the same problem, I have set JAVA_HOME: C:\Program Files\Java\jdk1.7.0_75 My guess is you have a lot of duplicate entries. Windows 10 does not allow me to edit the path because it says "This environment variable is too large." I know there should be another question to deal with this separately. I noticed that after checking the path per your suggestion. You need to change your PATH to put C:\Program Files\Java\jdk1.6.0_45\bin first. C:\Program Files\Java\jdk1.6.0_45\binįrom the above output we can deduce that C:\ProgramData\Oracle\Java\javapath is 1.8.0_66. The following is the Java related contents from the output of PATH: PATH=C:\ProgramData\Oracle\Java\javapath. Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_66-b18) Solution 1 java -version is running the wrong version of java.
0 Comments
Leave a Reply. |