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

后端 未结 19 1162
温柔的废话
温柔的废话 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:21

    Why Oracle did such a poor way to point to java is beyond me. We solved this problem by creating a new link to the JDK

    mklink /d C:\ProgramData\Oracle\Java\javapath "C:\Program Files\Java\jdk1.8.0_40\bin\"
    

    The same would work for a JRE if that is all that is required.

    This replaces the old symlinks in C:\ProgramData\Oracle\Java\javapath (if they existed previously)

    0 讨论(0)
提交回复
热议问题