When I run my web application with Tomcat, I get an error as follow:
Caused by: 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 "D:\jdk1.7.0_60\jre"
I set JAVA_HOME in Configuration, but unfortunately no effect.
SDKs setting in Project Structure:
========================================================
Problem has been solved!
Application get exception when doing Ant javac task, set the "fork" property true
then it find extJavac
.
Appreciate @Michael Hobbs and @Dimitri Hautot.