This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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