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