Cannot find java.exe

前端 未结 3 1674
一个人的身影
一个人的身影 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

    I had the same problem. Here's what worked for me: Go into your path variable and delete: C:\ProgramData\Oracle\Java\javapath\.
    Then add a new one called: %JAVA_HOME\bin
    This post helped: java-path-is-not-pointing-to-sdk-path-in-windows

    Edit: Sorry, I just noticed that this question was 3 years old.

提交回复
热议问题