Java does not compile .java [closed]

1

Java does not compile return error can not find nor load main class com.sun.tools.javac.Main.

    
asked by anonymous 02.07.2016 / 17:21

1 answer

1

You have probably done the JDK installation manually, so this is giving you this error, as you may have given some error in installing Java.

Run the following command on your JAVA_HOME/lib directory :

  

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

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

After this, try the following command:

  

javac -version

If you'd like to take a closer look at this, look at here for more details.

    
02.07.2016 / 17:57