Problems compiling from JSP with Tomcat

Home Forums MyEclipse IDE General Development Problems compiling from JSP with Tomcat

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Scott Anderson Scott Anderson 12 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #196617
    Profile photo of mguerin
    mguerin
    Member

    Hi,
    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?

    #196618
    Profile photo of Scott Anderson
    Scott Anderson
    Participant

    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.

    –Scott
    MyEclipse Support

    #196626
    Profile photo of mguerin
    mguerin
    Member

    Scott,

    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.
    Mark

    #196629
    Profile photo of Scott Anderson
    Scott Anderson
    Participant

    Mark,

    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.

    –Scott
    MyEclipse Support

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.