• 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

setting servlet environment

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have jdk1.2 installed on my PC. I have downloaded jsdk from sun's site. which resides in c:\jsdk2.0. I have set the path in autoexec.bat as c:\jsdk2.0\lib\jadk.jar;c:\jsdk2.0\bin. but till not working when tried javac compiler on sample servlet code. giving the error "javax.servlet not found in import." I have tried the same code with KAWA4.0 after setting the path there.But result is the same.javac is working fine with other jdk1.2 classes.like awt.,util.,etc.


 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is really a question more suited to the Servlets and JSP forum, so I've moved it.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
This is not setting your classpath problem, which should be the dos environment setting on u machine, for example, your dos environment may not have enough memory to let u set classpath.
You may try this:
1. forget about setting classpath.
2. copy the servlet.jar to c:\jdk1.2(or jdk1.3)\jar\lib\ext. because in java 2 environment the classpath is not necessary all, sun privid that folder for replacing classpath.
hope this will help and pls tell me your result
David
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic