I need help in setting up my developer environment.  I cannot get servlets
to compile despite numerous variations of Classpath and path variable
settings.

When I try to compile from the Command prompt I get the following error
messages:

1. Package javax.servlet not found in import.
2. Superclass GenericServlet of class Testabc not found.

I am running NT 4.0 and am connected via cablemodem (ethernet) and have no
networking problems.  I am running IE5.0 gold.  The machine is a dual boot
Windows98 and NT4.0 machine. (Pentium II, 450MHz, 256MB memory, 2 10GB IDE
Disks)

Thus far I have installed the following in the order listed.

JDK 1.2.1
Java Web Server 1.1.3
JSP 0.92
JSDK 2.1

The resulting directory structures are as follows:

e:\JavaWebServer1.1.3 (ran jwsr1_1_3-win-try-gl.exe - 8,200KB   - 4/27/99)
Directory is now 12.7MB in around 760 files in 83 folders - some additional
files I added). Subdirectories under this include: admin, bin, cgi-bin, jre,
lib, logs, properties, public.html, realms, servletbeans, servlets,
sessionSwap, srcdemos and system.  There are 4 files in this directory
including 2 readme files.

e:jdk1.2.1 (ran jdk1_2_1-win.exe - 20,034KB - 4/21/99)Directory now is
43.5MB in 1,061 files in 103 folders. Subdirectories under this include:
bin, demo, include, include-old, jre and lib.  There are 6 files in this
directory including src.jar.

e:\jsp (unzipped jspref092.zip - 606KB - 4/22/99 - into this directory)
Directory now is 1.01MB in 179 files in 20 folders.  Subdirectories under
this include: jsp, lib and servlets.  There is one readme file.

e.\jsdk (unzipped servlet2_1-win.zip - 366KB - 4/29/99 - into this
directory) Directory now is 1.11MB in 143 files in 26 folders.
Subdirectories under this include: etc., examples, src and webpages.  There
are 9 files including servlet.jar and server.jar (I have tried copying the
servlet.jar file everywhere I could think of to see if it made a
difference - it didn't).

After installing the Java Web Server I am able to get to it using
http://localhost:8080/ and I am able to invoke Java Web Server admin
facility as http:/localhost:9090/

My path as shown in Control Panel/System/Environment is:
%SystemRoot%\system32;%SystemRoot%;E:\PVSW\BIN;e:\JavaWebServer1.1.3\servlet
s;e:\jdk1.2.1\bin;e:\jsdk2_1;e:\JavaWebServer1.1.3\lib\servlets;e:\jsp\lib;e
:\Program Files\JavaSoft\JRE\1.2\lib\;e:\JavaWebServer1.1.3\jre\lib

There was no Classpath variable, so I defined one as follows.  My Classpath
as shown in Control Panel/System/Environment is currently e:\jsdk2.1

I have placed the java source file Testabc.java in the directory
e:\Javaerver1.1.3\servlets\ and I am in that directory when I enter the
compile intruction as follows:

         e:\Javaerver1.1.3\servlets>javac Testabc.java

I have copied the servlet.jar file from the jsdk2.1 directory to this
directory as well.

I have searched my entire drive for any file beginning with javax*.* and
found none.  I suspect this is in the servlet.jar directory.

I have found references that say i should change my autoexec.bat file but I
cannot find such a file on my root directory.  Tne classpath values I see in
the NT system environment does not show up if I type SET Classpath in the
CommandPrompt window.

I would be GREATLY appreciative if someone could advise me as to:

  1. what contents I sould put where (i.e. what directory structure should I
be using with what files in each
  2. what exactly my path and classpath variables should look like (please
exact entries)
  3. what directories I should be placing my source files when I compile and
where I should place them after they have been compiled.
  4. what directory I should be in when I try to compile
  5. what, if any, servlet registrations to the Java Web Server admin are
absolutely needed.
  6. how I should reference the servlets from my browser to test them.

I would also be very interested in information about any web sites that
cover installing all these components and setting up AND TESTING the
development environment and useful tips on the mechanics of development,
compiling, source management and deployment of servlets and JSPs.

Sorry about the length, but I wanted to be sure it was clear as to what I
had tried and not tried on my own.  Thanks in advance for any assistance.

Bill

___________________________________________________________________________
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