wood burning stoves 2.0*
The moose likes Servlets and the fly likes javax.servlet.http.* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "javax.servlet.http.*" Watch "javax.servlet.http.*" New topic
Author

javax.servlet.http.*

Sarah Smith
Greenhorn

Joined: Apr 27, 2001
Posts: 8
The same TimeS.java file compiles on one machine and does not compile on a second machine. The classpath is :
set CLASSPATH=C:\J2SDKEE1.3\LIB;C:\jdk1.3.0_02\jre\lib;C:\jdk1.3.0_02\lib;.
Why does it compile on 1 machine and does not compile on another?
C:\orion\default-web-app\WEB-INF\classes>javac -classpath %CPATH% TimeS.java
TimeS.java:26: package javax.servlet does not exist
import javax.servlet.*;
^
TimeS.java:27: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
The javax.servlet related packages usually live in their own JAR file. Typically servlet.jar
That would be the first place to look.
You should not have to specify
C:\jdk1.3.0_02\jre\lib
in a classpath, read the docs in the tooldocs section on how Java finds library files.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: javax.servlet.http.*