This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes Class JSPException not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Class JSPException not found error" Watch "Class JSPException not found error" New topic
Author

Class JSPException not found error

D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
Hi I am trying to compile my code via ANT.
I get following error
Symbol : class JSPException not found.
I have installed java 2 SDK. Java Web Services Development kit.
Am I missing something?
[ January 05, 2004: Message edited by: Rei Damle ]
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
It looks like a classpath problem.
Is servlet.jar in your classpath?


- Varun
D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
Hi Varun,
I do not see servlet.jar on my machine. Java web services pack ( has inbuilt tomcat impl) has servlet-api.jar file which is in my class path.
Are servlet.jar and servlet-api.jar similar?
D. Rose
Ranch Hand

Joined: Apr 25, 2003
Posts: 215
Hi,
I think I have hit the answer by just trial and error.
When I had jsp-api.jar file in my classpath alongwith servlet-api.jar, my error is gone.
But by God, how are we supposed to know about this? I did not find it anywhere. I tried googling also but with no help.
Can any experienced person, please tell me where all such nitty-gritties
can be found?
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Originally posted by Rei Damle:
Hi Varun,
I do not see servlet.jar on my machine. Java web services pack ( has inbuilt tomcat impl) has servlet-api.jar file which is in my class path.
Are servlet.jar and servlet-api.jar similar?

Have you seen if JSPException class is there in servlet-api.jar?
 
jQuery in Action, 2nd edition
 
subject: Class JSPException not found error