*
The moose likes Servlets and the fly likes Critical prob Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Critical prob" Watch "Critical prob" New topic
Author

Critical prob

deshdeep divakar
Ranch Hand

Joined: Apr 19, 2004
Posts: 91
hi this is a problem related to compilation of the servlet program.
classpaths are set as: c:\jdk1.4\lib\dt.jar;
c:\jdk1.4\lib\htmlconverter.jar;
c:\jdk1.4\lib\tools.jar;
c:\jdk1.4\lib\servlet-api.jar;
but on compiling the servlet in command prompt by javac compiler the error is the packages of servlet and servlet.http. do not exist.
there is no problem in running applet.


"Do not be afraid of going slow, be afraid of standing still"
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
I feel your classpath is correct. Still compiler could not catch the jar files. Please check the jar files exist in the directories and there is no spelling and syntax mistake in classpath varibles

regards


Sarath Mohan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Critical prob
 
Similar Threads
Fun with Classpaths
multiple JREs
Unable to compile these java files
Problem in compilation
symbol cannot be found