This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Need help in compiling servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Need help in compiling servlet" Watch "Need help in compiling servlet" New topic

Need help in compiling servlet

saina smith

Joined: Dec 14, 2004
Posts: 5
Iam new to servlets.Iam working on the first mvc example in HF servlets book. I downloaded tomcat 5.5 and j2se sdk 1.5. Tomcat is running fine.I set the following in the environment variables.

classpath is %CLASSPATH%;%TOMCAT_HOME%\common\lib\servlet-api.jar;%TOMCAT_HOME%\common\lib\jsp-api.jar;.
TOMCAT_HOME is C:\Program Files\Apache Software Foundation\Tomcat 5.5
JAVA_HOME is C:\Program Files\Java\jdk1.5.0.

When I try to compile BeerSelect using c:\MyProjects\beerV1\javac -d classes src\com\example\web\ it says package javax.servlet does not exist. Can anyone please help me
purnam mungara

Joined: Dec 14, 2004
Posts: 1
I think you need to put path of servlet.jar in path environment variable.
VP Jain
Ranch Hand

Joined: Feb 11, 2004
Posts: 81

Try using Eclipse IDE, a very good open source tool.

So u will concentrate more on the objective, rather than struggling with petty things.

But some may not recommend it

and u know who it is

Anyway all the best


SCJP SCWCD SCBCD <br /> <br />what u do in life echos in eternity!
I agree. Here's the link:
subject: Need help in compiling servlet
It's not a secret anymore!