ystyle / jvms

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

Switch jdk failed, please manually remove #42

Open LeiYangGH opened 6 months ago

LeiYangGH commented 6 months ago

i use jvms init C:jdk

then jvms install... then jvms switch reports:

Switch jdk failed, please manually remove C:/jdk

note i'm running ps as admin.

ystyle commented 6 months ago

If you want to modify the file location of the java_home soft link, you should execute:

jvms init --java_home c:\jdk
LeiYangGH commented 6 months ago

i was using that to init. i mean in some occasion the error message is not accurate.