• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put the servlet.jar

 
Cameron Park
Ranch Hand
Posts: 371
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Bipul Bhatta
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic