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

后端 未结 19 1190
温柔的废话
温柔的废话 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条回答
  •  萌比男神i
    2020-12-02 23:07

    c:\ProgramData\Java\javapath is used for symlinks. You can of course add the full path to your Java Path to %PATH%, but equally you can create a symlink to the path to the above location.

    1. Open CMD as Administrator.
    2. Type mklink java.exe (full path to your Java.exe) eg

    mklink java.exe "C:\Program Files\Java\jdk1.8.0_25\bin\java.exe"

提交回复
热议问题