• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running simple servlet

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
reply
    Bookmark Topic Watch Topic
  • New Topic