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

后端 未结 18 2191
长情又很酷
长情又很酷 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:39

    Make sure your JDK Path variable is directing to the \bin folder and is at the top of the list.

    If there's any other entry that has a file called java (such as C:\ProgramData\Oracle\Java\javapath) it will run the command against that file instead of the java file in your JDK. There's no need to reinstall the entire JDK unless your files are corrupt or damaged for some reason.

提交回复
热议问题