As of 9-27-2005 on my laptop (Windows 2000), I have Tomcat 5.5 installed as well as JDK 1.5. I also have other versions of JDK, but this is the latest. To make compiling easiest, ones PATH should include "C:\Program Files\Java\jdk1.5.0_03\bin" and ones CLASSPATH should include "C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar" (to see what it's set to under DOS, echo %CLASSPATH%). That way, you can just say cd "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Java-Servlets-Class" javac ServletsHomework2.java Otherwise you have to do it the hard way, cd "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Java-Servlets-Class" "\Program Files\Java\jdk1.5.0_03\bin\javac" -cp "C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar" ServletsHomework2.java To get more fancy and put the resultant .class file in its proper place, cd "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\Java-Servlets-Class" javac -d ServletsHomework2.java - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - When I didn't specify that Tomcat library, I got the following javac errors, ServletsHomework2.java:2: package javax.servlet does not exist import javax.servlet.*; ^ ServletsHomework2.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ ServletsHomework2.java:5: cannot find symbol symbol: class HttpServlet public class ServletsHomework2 extends HttpServlet { ^ ServletsHomework2.java:7: cannot find symbol symbol : class HttpServletRequest location: class ServletsHomework2 public void doGet(HttpServletRequest request, ^ ServletsHomework2.java:8: cannot find symbol symbol : class HttpServletResponse location: class ServletsHomework2 HttpServletResponse response) ^ ServletsHomework2.java:9: cannot find symbol symbol : class ServletException location: class ServletsHomework2 throws IOException, ServletException ^ 6 errors which took me down the road of finding where this javax.servlet package lived. We found it at "C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar" and you can verify what's inside this jar file by dropping it into WinZip, which shows a bunch of stuff with Path=javax\servlet\ including HTTPServlet.class and ServletException.class and a bunch more stuff with Path=javax\servlet\http\ including HTTPServletRequest.class and HTTPServletResponse.class =================================================================================== J2ME = Java 2 Micro Edition J2SE = Java 2 Standard Edition J2EE = Java 2 Enterprise Edition, which according to http://en.wikipedia.org/wiki/J2EE, "The J2EE APIs includes several technologies that extend the functionality of the base J2SE APIs." apparently including (is this list exhaustive? I dunno) - javax.ejb = Enterprise Java Beans - javax.servlet - javax.servlet.jsp - javax.naming (JNDI) - javax.sql and javax.sql (JDBC) - javax.transactions (JTA=Java Transaction API) - javax.xml (JAXP) - javax.jms (JMS=Java Messaging Service) =================================================================================== When I downloaded & installed the J2EE v1.4 SDK on 6-10-2005 on my laptop, it asked me for an admin password that had to be 8 characters -- I chose "password". It also had 3 ports you can specify. The "Admin Port" at 4848, the "HTTP Port" at 8080, and the "HTTPS Port" at 8181. The HTTP Port would conflict with the Tomcat server I had running there, so I changed it to 8180. After installation, it put you to this web page with some decent-sounding start points. See C:\Program Files\Java\j2eesdk1.4\dcs\about.html =================================================================================== To compile a java program, cd ~jasper/aixnotes/java_examples javac Hello.java This creates java.class, which you can then run by java Hello =================================================================================== Getting the Latest Java code, 1.3. February 2, 2002 - Start at http://www.ibm.com/java/jdk - Follow the "IBM Developer Kit for AIX" link, to http://www-106.ibm.com/developerworks/java/jdk/aix/index.html?dwzone=java - Follow the "Register and download" link to a selection screen of different version of Java, the most recent being 1.3.1. Following that "1.3.1" link, gets me to a "ENTER PASSWORD HERE" page telling me my userid is rickjas, evidently known by a previous cookie. Use my standard Internet password. - Clicked the "Don't Send me Spam" and "I Accept the license" buttons. - Got a "Netscape:Password" prompt, asking for a User ID/Password. rickjas/standard Internet Password, worked. This next page allowed me to choose - "Binaries and classes", getting me a 23 MB Java131.rte.tar.gz, When you gzip -d < Java131.rte.tar.gz | tar xf - this, you get one file, -r--r--r-- 1 jasper staff 29389824 Dec 06 08:51 Java131.rte AND - "Java Security Tools", getting me a 5 MB Java131.ext.security.tar.gz When you gzip -d