Two Laptop Bag*
The moose likes IDEs, Version Control and other tools and the fly likes Problem running a Tomcat 4.1 project from Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem running a Tomcat 4.1 project from Eclipse" Watch "Problem running a Tomcat 4.1 project from Eclipse" New topic
Author

Problem running a Tomcat 4.1 project from Eclipse

Robin Sharma
Ranch Hand

Joined: Aug 24, 2005
Posts: 76
Hi!

I am trying to run a tomcat project (via the SYSDEO Tomcat plugin) from Eclipse. When i type the following in the Explorer:
*** http://localhost:8080/ProjectRunTomcat/jsp/start.jsp ***

The following exception is thrown:

*******************************************
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
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:308)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at org.apache.jasper.JspCompilationContext.compile
......
......
***************************************************************

Now, the variable JAVA_HOME is properly set in my Windows m/c's Environment variables.

What could be the problem.

Thanks.


DW
There is always a bug :-)
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
do you have tools.jar in tomcat lib? It is required by tomcat for compiling jsps.


If Java had true garbage collection, most programs would delete themselves upon execution -- Robert Sewell
 
wood burning stoves
 
subject: Problem running a Tomcat 4.1 project from Eclipse
 
Similar Threads
struts installation exception
error in running the jsp
Unable to run a jsp file ?
Unable to run a jsp file ?
Struts Example not working!