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

urgent help needed

Smarter Shah
Greenhorn

Joined: Jun 29, 2006
Posts: 1
PLease help me...
i can run all the core java programs.had installed jdk 1.5.06.
then i had installed j2ee 1.4 setted the path variable to dir/lib/j2ee.rar
but still whenever i try to compile the program i recieve error similar to below one:

C:\james2\james2>javac addrec.java
addrec.java:72: package javax.servlet does not exist
import javax.servlet.*;
^
addrec.java:73: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
addrec.java:75: cannot find symbol
symbol: class HttpServlet
public class addrec extends HttpServlet
^
addrec.java:77: cannot find symbol
symbol : class HttpServletRequest
location: class addrec
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
^
addrec.java:77: cannot find symbol
symbol : class HttpServletResponse
location: class addrec
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
^
addrec.java:77: cannot find symbol
symbol : class ServletException
location: class addrec
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException

^
6 errors

please help me with this...
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular, please see UseAMeaningfulSubjectLine
and
EaseUp.


Again, welcome to JavaRanch and good luck with your question.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
Does your classpath variable point to j2ee.rar? I've not worked with .rar files, but if the class against which you need to compile (e.g. HttpServletRequest) is located in that .rar file, I imagine you'll need to make sure it's included in your classpath (not your path).


Fun programming etcetera!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent help needed
 
Similar Threads
java don't compile my servlet.
compilation error while running simple servlet code
Compler Errors
package javax.servlet.http does not exist
error with compiling servlet