my dog learned polymorphism
The moose likes Beginning Java and the fly likes javac problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac problems" Watch "javac problems" New topic

javac problems

Ramm Kummar

Joined: Feb 10, 2009
Posts: 26
I have copied the servlet-api and jsp-api jar files from the lib folder of the tomcat to the lib folder of the jdk. Still I am getting this error: I have given these jar files in the system classpath variables alo. Please suggest me here.
K. Tsang

Joined: Sep 13, 2007
Posts: 3062

Which jar files you included? Servlets and JSP stuff is part of J2EE (the j2ee.jar).

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
javac -classpath <path to your jar files>
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45364
Is there anything in the servlets FAQ?
I agree. Here's the link:
subject: javac problems
It's not a secret anymore!