facebook

Unable to compile class for JSP

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #252712 Reply

    Steve Wei
    Member

    hi

    I created a web application in myEclipse and deployed the application under tomcat 4.1.30 in window environment. I set the Java_Home in window control panel–>system as a environment variable.

    if I start the Tomcat by using dos command line, the web application works fine.

    But if I start tomcat from myEclipse, the web application does not work and I got this error message

    “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”

    I need your help on how to resolve this issue from myEclips configuration.

    thanks.

    –Steve

    #252775

    Riyad Kalla
    Member

    Steve,
    Are you running Tomcat 4 using a JDK from MyEclipse? I wonder if the Tomcat team changes the mechanism by which they find the tools.jar file to invoke the compiler on the JSPs.

    #252784

    Steve Wei
    Member

    Hi

    Thanks for your fast response. I use the JDK from Sun.

    I think my problem is that I do not know how to put the classpath in MyEclipse. Your advise is greatly appreciated.

    –Steve

    #252785

    Riyad Kalla
    Member

    Steve,
    Go back to your Tomcat connector settings, expand the Tomcat node and go to the Paths node below that, you can adjust the classpath there and make Tomcat happy.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Unable to compile class for JSP

You must be logged in to post in the forum log in