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
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.