i have written a very simple jsp page in eclipse.It works fine when I run it by deploying it as a WAR file and Internet Explorer. But when I try to run it by adding tomcat5.0 to eclipse and running it through IDE it shows error 500 Unable to compile class for jsp...
Do you get any more information? Is there a stack trace in the console window or the Tomcat logfiles? It may contain a more detailed exception message that should give you an idea of what's wrong with your JSP.
Root cause of error: 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
No idea what to do???
Joined: Apr 26, 2008
What is on your build path? Can you create a standard java app in Eclipse and run it? If so, your JDK is set up but everything you need for web stuff may not be in the build path of your web-app. Try looking through your 'Configure build path' options and make sure you have what you need.
If you don't see a problem show us the directory structure of your project.