The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Java

Posted by suresh on July 11, 2001 at 3:12 AM

> in order to compile any servlet with java web server, one has to include servlet.jar in the CLASSPATH.
> so I set up my CLASSPATH variable in autoexec.bat like
> set CLASSPATH = c:\JavaWebServer2.0\lib\servlet.jar;

> now if i try to compile my servlet, javac gives me error saying that packages javax.servert.*; & javax.servlet.http.*; not found, but If I run javac like this
> javac -classpath c:\JavaWebServer2.0\lib\servlet.jar first.java
> this things get compiled.
> Does anybody has a clue what I am doing wrong
> Thanx in advance
> Sami






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us