This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Unable to find a javac compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to find a javac compiler" Watch "Unable to find a javac compiler" New topic
Author

Unable to find a javac compiler

Pablo M�ller
Ranch Hand

Joined: Dec 12, 2006
Posts: 63
Hi,
I have an application running on Tomcat 5.5.16 which I deploy using tomcat deployer (5.5.16). This works great. This application then calls tomcat deployer to deploy other application to the same server (I build the configuration file at runtime). But then I get this error:

I've been searching the web for this and tried everything:
- tools.jar is in TOMCAT_HOME/common/lib
- my JAVA_HOME points to the SDK not just the JRE
- I specified the path to tools.jar in the build.xml
- I put tools.jar in the lib directory of tomcat deployer.
I don't know what's going on.. It works when I call the ant task form eclipse but not when I call it fromthe application. Any ideas?
Thaks a lot.
Pablo.


2B || !2B
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to find a javac compiler
 
Similar Threads
Error :Unable to find a javac compiler
Unable to find a javac compiler
Unable to find a javac compiler
com.sun.tools.javac.Main is not on the classpath With JBOSS
Ant installer javac issue