aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "classpath" Watch "classpath" New topic
Author

classpath

swetha shah
Greenhorn

Joined: Aug 21, 2003
Posts: 7
Hi
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
Swetha
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
Greenhorn

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
vijay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classpath
 
Similar Threads
No Class
Compiling, but not running !!!
Web Application Architecture
Spring TestCase Exception
how to use ClassLoader ???