This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running simple servlet

 
arekonda ramesh babu
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai

iam getting the compilation error:: 1.javax.servlet not found

while compiling under c:\project\src\javac Ch1Servlet.java

i set classpath ,path,java_home as follows
class path:
C:\bea\jdk142_08\lib;C:\Program Files\Apache Software Foundation\Tomcat 5.0\server\lib;C:\Sun\AppServer\lib;C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib;

path:
C:\Sun\AppServer\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ntutils;C:\Scripts;C:\bea\jdk142_08\bin;C:\Program Files\Perforce;D:\Profiles\frhq87\Desktop\apache-ant-1.6.5\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin;

java_home:

C:\Program Files\Java\jdk1.5.0_09
 
Kai Witte
Ranch Hand
Posts: 356
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

the common/lib contains only jars, so it does not help to include that in the classpath. What you need is servlet.jar or servlet-api.jar (version dependent) inside the common/lib.

Kai
 
arekonda ramesh babu
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
God sends Reply in the form of

Kai Witte

i can only acknowledge with the above as i put 5 valuable hours and in vain

to identify what went wrong

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic