• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Where to put the servlet.jar

 
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I just found a servlet.jar in tomcat's lib directory. I put it in C:\jdk1.2.1\lib, the compiler can not find javax.servlet.*. Then I put it in C:\jdk1.2.1\jre\lib, the compiler still can't find javax.servlet.*. Can someone tell me where exactly to place the servlet.jar?
Thanks.
BTW, I am using JDK 1.2.1.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
As u find the servlet.jar in the tomcat's directory, note down the full path.Then go to the dos prompt and set classpath ,the command may be set classpath=%classpath%;c:dir name\dir name\(where servlet.jar file is).

Then complie servlet file and run it.Think now it will work .
Byee
Bipul
 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At c:/> I put classpath=%classpath%;C:\jakarta-tomcat-3.2.1\lib, but DOS says "Bad command or file name". Can you be more specific?
Thanks.
 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Cameron,
If JAR file has to be recognized in the classpath, you need to provide the complete path including the name of the JAR file
Assuming, that you have have servlet.jar in C:\jakarta-tomcat-3.2.1\lib, this is what you need to add in your System/User Classpath of your system

Alternatively, you could type the following command in the DOS-Prompt

Hope this helps,
Regards,


------------------
Sandeep Desai
vgdesai@vsnl.com

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic