This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Java » Servlets
Bookmark "javax.servlet.http.*" Watch "javax.servlet.http.*" New topic


Sarah Smith

Joined: Apr 27, 2001
Posts: 8
The same 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% package javax.servlet does not exist
import javax.servlet.*;
^ package javax.servlet.http does not exist
import javax.servlet.http.*;
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
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
in a classpath, read the docs in the tooldocs section on how Java finds library files.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: javax.servlet.http.*
jQuery in Action, 3rd edition