aspose file tools*
The moose likes Beginning Java and the fly likes Problem with servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem with servlet" Watch "Problem with servlet" New topic
Author

Problem with servlet

M Zabidin Mamat
Greenhorn

Joined: Jan 08, 2008
Posts: 5
Hi,

I still newbie with servlet. Need help and also some advice. Here is my code:



But got this kind of error:



Does that mean package not available in API doc?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://faq.javaranch.com/java/CompilingServlets


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I'm going to move this to our Java in General forum where classpath, and javac issues are handled.
M Zabidin Mamat
Greenhorn

Joined: Jan 08, 2008
Posts: 5
I still confuse why i can't compile that file. If i want to use that file, i have to make it to .class, am i right?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
Did you read and understand the FAQ entry Ben pointed you to? The first part -that talks about the servlet jar file being needed- is exactly what your problem is.


Ping & DNS - updated with new look and Ping home screen widget
M Zabidin Mamat
Greenhorn

Joined: Jan 08, 2008
Posts: 5
Yes, i read that faq. Maybe i need more study about this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with servlet
 
Similar Threads
SimpleServlet.java:2: package javax.servlet does not exist
java don't compile my servlet.
compilation error while running simple servlet code
servlet will not compile aargh
error with compiling servlet