Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Couldn't compile the servlets

 
Ronyn Woods
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Jdk1.2.2, and copy the servlet.jar to jdk1.2.2\lib,
and then set the classpath,
c:\>set classpath=.;c:\jdk1.2.2\lib,
then, i couldn't compile the servlets,
Plz tell me howto, and thank for your help
 
vik nuckchady
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do you have a , after the set classpath statement ?
 
Ronyn Woods
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's typing error.
I just enter:
c:\>set classpath=.;c:\jdk1.2.2\lib
 
Bhanu manne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey
If i am not wrong you should set the class path pointing to the jar file not just to the directory.
so set classpath as classpath=c:\jdk1.2.2\lib\servlet.jar
you set it up to the directory in case of a package.
Hope it works
bhanu
 
Ronyn Woods
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! yes
It should point to the servlet.jar file clearly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic