Looks like your Java setup is not entirely correct which is indicated by these two lines in your log:
[error] Error: Could not find or load main class com.sun.tools.javac.Main
[error] (compile:compile) javac returned nonzero exit code
It means that the Main class could not be found. It is located in tools.jar, which should be in the JAVA_HOME\lib
dir.
Re-check your Java installation and make sure all paths are set correctly. Try compiling a simple Java file first to make sure you can compile.