This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes  Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Unable to compile class for JSP" Watch " Unable to compile class for JSP" New topic
Author

Unable to compile class for JSP

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Just installed tomcat 5.0.19 and hooked to eclipse 2.1.
When I run my jsp files I got:
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib.
I copied tools.jar to common/lib but no luck.
However, the jsp examples that come with installation run fine.
Any ideas?
Thanks.


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to compile class for JSP
 
Similar Threads
Error
class-path problem in tomcat.
Can�t compile jsp in tomcat 5.0.18
Can not run jsp in tomcat 5.0.19
jsp under eclipse are not getting compiled