Java does not compile. java

Asked

Viewed 68 times

1

Java does not compile error return, it is not possible to locate or load main class with.sun.tools.javac.Main.

  • Always put information in more detail, for example in your case, put the log of the error that occurred.

1 answer

1

You probably did the installation of JDK manually,and this is why you are giving this error, because there must have been some error in the installation of Java.

Execute the following command, JAVA_HOME/lib directory :

unpack200 -r -v -l "" tools.pack tools.jar

This will unpack the file tools.jar which is probably causing the error.

After this, try the following command :

javac -version

If you want to take a closer look at the subject, here about more details.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.