ystyle / jvms

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

JDK is not installed even after the zip is downloaded, command not found #7

Closed hirenchauhan2 closed 6 years ago

hirenchauhan2 commented 6 years ago

OS: Windows 10 CMD as Administrator

cmd-jvms

ystyle commented 6 years ago

you can run dir . store download in c:\jvms and show the result?

hirenchauhan2 commented 6 years ago

I can see that it downloads the JDK zip file, but it fails to extract it in the C:\Program Files\jdk. and if there is not jdk folder in C:\Program Files\, it does not even create that folder, even when the cmd is running with admin permission.

2018-01-31_00-28-13

ystyle commented 6 years ago

It seems that the zip file is unpacked error。 you can try this manual:

  1. extract 1.8.0_31.zip to 1.8.0_31
  2. cut 1.8.0_31 folder to c:\jvms\store\
  3. run jvms ls && jvms switch 1.8.0_31

jvms will do this:

hirenchauhan2 commented 6 years ago

Thank you @ystyle, this worked! 💯 👍