I am having a problem getting the .java files generated from my jsp pages to compile when I run tomcat (any version) from myEclipse ide. When I start Tomcat via its own batch file it seems to work fine. The error seems to be that it cannot find javac. Has anyone else had a similar problem?
The problem is that you’ve most likely configured Tomcat to use a JRE instead of a full JDK. Check the JDK configuration page for the Tomat Connector and ensure that you’re pointing to the top level of a full JDK installation, and not to the jre subdirectory within it.
Thanks for getting back to me so quickly. I checked my settings and I was pointing to a JDK but for some reason I was getting the JRE runtime libs rather than the jar files I needed. I have had a similar problem with the ANT plugin. I solved both problems by adding lib\tools.jar to my CLASSPATH. This is all new to me and I’m sorry if I wasted your time with it. Now that I have had a taste of jsp debugging I will be signing up for membership. Keep up the excellent work.
You’re not wasting my time in any way. We already have several thousand people that have either subscribed or are trying out our product. If you had this question, I’m sure others do too. Hopefully, others will benefit from what you found out.