“The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe”

后端 未结 19 1275
温柔的废话
温柔的废话 2020-12-02 22:39

I am on JDK 8u25 on Windows 8, and I am experiencing a problem with my Java installation. I can run javac perfectly fine, but running java produc

19条回答
  •  醉话见心
    2020-12-02 23:18

    1. Uninstall all JDKs installed on your computer from the Java Control Panel
    2. Search for C:\ProgramData\Oracle\Java and delete that directory and all files contained within. You can do this from the command line using rmdir /S C:\ProgramData\Oracle\Java
    3. Then search for C:\ProgramData\Oracle and delete the oracle folder. You can do this using rmdir /S C:\ProgramData\Oracle
    4. Now install JDK and set the path.

    5. Run the program.You won't find the same problem anymore.

提交回复
热议问题