>In each case, I still get the error that it cannot find of them still could
>not find javax.servlet.
>

>In the meantime, I have changed the classpath to be as follows:
>e:\jsdk2.1\;e:\jsdk2.1\src\;e:\jsdk2.1\src\javax\servlet\;e:\jsdk2.1\src\ja
v
>ax\


As far as I can tell, javax should be found if your classpath is as above
(as long as you re-booted).  However the error messages still indicate that
it is *not* being found, all I can suggest is try the following:


You should have a dot "." in your classpath such that it is something like:

SET CLASSPATH=.;e:\jsdk2.1\src

After re-booting, move to the directory e:\jsdk2.1\scr (which is where your
servletABC.java source file and javax directory are) and try and compile the
sevlet from this directory.


>Looking at the contents of these directories, I find there are only .java
>files and no .class files.  All in all, I find the following:
>
>jsdk2.1<DIR>
>   default.cfg
>   server.jar
>   servlet.jar
>   src<DIR>
>      no files
>      javax<DIR>
>         no files
>         servlet<DIR>
>            Servlet.java
>            GenericServlet.java
>            ServletRequest.java
>            and 9 other similar *.java files
>            http<DIR>
>               HttpServlet.java
>               HttpSession.java
>               and 7 other Http*.java files
>            jsp<DIR>
>               HttpJspPage.java
>               JSPPage.java
>


That look ok to me. When you run javac on a java source file that imports
the package javax (a servlet for example) for the first time, the required
classes in javax that have not yet been compiled, will be -- assiming javax
can be found!

>I even tried compiling some of the java files in the servlet directory.
>ServletException.java, ServletInputStream.java and ServletOutputStream.java
>were the only ones I could get to compile.  The others all had couldn't
find
>some javax.* class.  Some reported that they couldn't find javax.servlet.


Your java is still not finding javax.

>I also tried copying the servlet.jar file into the servlet directory.  No
>difference (what is in the jar file?  Is it relevant?
>

As far as I am aware it is not relavent.


Hope that helps,

Dan.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to