Error when checking Java version: could not find java.dll

后端 未结 18 2228
长情又很酷
长情又很酷 2020-11-29 07:29

why do I get this? How can I fix it?

C:\\Users\\ash>java version
Error: Registry key \'Software\\JavaSoft\\Java Runtime Environment\'\\Cu         


        
18条回答
  •  广开言路
    2020-11-29 07:41

    1. Uninstall Java from machine
    2. Check Java folder is deleted from Program Files
    3. Check Registry does not have any instance of Java
    4. Open system Variables and delete the ONLY java path from PATH
    5. Now install the new version again.
    6. Set the Path in System Variables.

    This process cleans up all the traces of java and then install fresh java.

    Note: This issues occurs when there is multiple installation and uninstall done.

提交回复
热议问题