Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to C:\\Program Files\\Java\\jre1.8.0_111
I'm getting this error when i try to run CMD file.
You need to install JDK
In ECLIPSE, Set the installed JRE setting to the JDK - in the project (project properties -> Java Build Path-> Libraries), or global default in preferences (Java->Installed JREs). The eclipse setting is stronger than the system variable
Try this also:
tools.jar
was wrong. It was pointing to an older version of Java;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.