• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classpath

 
swetha shah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is tomcat installed? if not, which web container are you using?
have you followed the tomcat instructions?
 
vijaykumar shah
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic