File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "classpath" Watch "classpath" New topic


swetha shah

Joined: Aug 21, 2003
Posts: 7
Just now i started learning Servlets.I have J2sdk1.4.2_01 and JWSDP1.2.How should i set the classpath to work with servlets.
Thanks in advance
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Is tomcat installed? if not, which web container are you using?
have you followed the tomcat instructions?

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
vijaykumar shah

Joined: Jul 02, 2003
Posts: 23
understand the meaning of path , claspath first
what u have to add in both ...
path: its something related to making your command globally when once your pc starts .... like whenever u go to start - run and type cmd it will open dos window right?... who know what is cmd.. what to do when cmd is encountered

it is os which interprets it .. so if u want to make javac , java global command to be runned from any prompt.. or where u developed your .java file
what u do is in mycomputer - properties - advanced go to environemtn variable and add path: c:\jdk1.2.2\bin or what ever your directory is
now regarding classpath: why we need it .. when i say java .. it has something to do with jvm the classes and manythings in all .. right?...
where do i find all this ... so what i do is to support your commands i load the modules when i start the os .. i.e make my jvm and the platform ready to execute the programs
so in the same where u added path , go and add one more new CLASSPATH there specify your .jar files
where u have installed jdk u can find .. c:\jdk1.2.2\lib\dt.jar
this will make u compile and run your servlets...
got it
if more question come online on yahoo vijayshahbiis2003 or vijay_shah_78
will try to solve your problem online
I agree. Here's the link:
subject: classpath
It's not a secret anymore!