Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
javac problems
Ramm Kummar
Greenhorn
Posts: 26
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\demo>javac HelloS ervlet.java HelloServlet.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloServlet.java:4: package javax.servlet does not exist import javax.servlet.*; ^ HelloServlet.java:6: cannot find symbol symbol: class HttpServlet public class HelloServlet extends HttpServlet { ^ HelloServlet.java:7: cannot find symbol symbol : class HttpServletRequest location: class HelloServlet public void doGet (HttpServletRequest req, ^ HelloServlet.java:8: cannot find symbol symbol : class HttpServletResponse location: class HelloServlet HttpServletResponse res) ^ HelloServlet.java:9: cannot find symbol symbol : class ServletException location: class HelloServlet throws ServletException, IOException ^
K. Tsang
Bartender
Posts: 3648
16
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Which jar files you included?
Servlets
and
JSP
stuff is part of
J2EE
(the j2ee.jar).
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
Dawn Charangat
Ranch Hand
Posts: 249
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
try
javac -classpath <path to your jar files> HelloServlet.java
Campbell Ritchie
Marshal
Posts: 79177
377
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is there anything in the servlets
FAQ
?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Unable to import
package does not exist problem
simple servlet program error
Command line arguments
Compler Errors
More...