ystyle / jvms

JDK Version Manager (JVMS) for Windows
MIT License
551 stars 61 forks source link

Switch from 1.8 to 11 failed, the display is successful, but the java-version is still 1.8, are locally installed JDK, copy into store #22

Open V1rtu0l opened 2 years ago

V1rtu0l commented 2 years ago
image
ystyle commented 2 years ago

I did not reproduce the problem, You can see if the target pointed to by C:\Program Files\jdk has changed

2022-06-24_10-37

Panaith commented 1 year ago

Hello, I had the same issue.

Repro steps:

That is when I got the same error as described in above comments. Running terminal as administrator and playing with jvms commands seem to work just fine. But when I run java -version I always got the one specific version.

Solution:

Open windows environment variables, go to system "Path" variable and make sure that "C:/Program Files (x86)/jdk/bin "C:/Program Files/jvms are listed before any other entry that has to do with java (oracle Java installer created its own entries for java here and listed them on top of the Path list)

I hope this helps and works also for you.