• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confusion in classpath

 
Naresh Saw
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

is there any difference between these two?

1. set classpath=C:\Tomcat 5.5\common\lib
2. set classpath=C:\Tomcat 5.5\common\lib\servlet-api.jar

specially when we r considering the servlet api.
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naresh Saw:
hi all

is there any difference between these two?

1. set classpath=C:\Tomcat 5.5\common\lib
2. set classpath=C:\Tomcat 5.5\common\lib\servlet-api.jar

specially when we r considering the servlet api.


you are trying to compile servlet file or what?

choice 2 would be the exact option. cos you telling the servlet-api.jar to compile when you wanna compile...

choice 1 i think it contains many jar files, so you use specific jar file to compile specific file...like to compile a servlet, use servlet-api.jar.

i am noob at this, but i guess it is like that...hehe...correct me if i'm wrong..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic