Cannot find java.exe

前端 未结 3 1563
一个人的身影
一个人的身影 2021-01-27 11:22

I am trying to launch a .bat file but I get the error

System cannot find the file C:\\ProgramData\\Oracle\\Java\\javapath\\java.exe

I understand that this is pro

3条回答
  •  无人及你
    2021-01-27 11:40

    First of all, the path that you provided i.e. C:\ProgramData\Oracle\Java\javapath\java.exe doesn't appear to be correct. It should point to either JRE or JDK folder that you (probably) have in here:

    C:\Program Files (x86)\Java\jdk1.8.0_25\bin
    

    In there you should at least see the following files (and hence, the addition of this bin directory to your PATH variable in the env vars):

    java.exe

    javac.exe

    javaw.exe

    javap.exe

    java.h.exe

    java-rmi.exe

    javadoc.exe

    jarsigner.exe

    jar.exe

    If you don't see the files above, something is definitely wrong! Also, even if you were using JRE (not JDK), you should still have this bin folder present, where java.exe resides.

提交回复
热议问题