I'm having trouble getting j2sdkee1.3.1 to work. I've downloaded and run the install for j2sdkee1.3.1.
I then set the environment vars as follows:
J2EE_HOME=C:\j2sdkee1.3.1
JAVA_HOME=C:\j2sdk1.4.1_02
and added the path:
C:\j2sdkee1.3.1\bin
But when I ran a test serverlet I got an error (listed below). Have I put the paths for the variables in wrong?
Heres the error:
C:\Documents and Settings\rcooper\My Documents\java\practise>javac ExampServlet.
java
ExampServlet.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
ExampServlet.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
ExampServlet.java:5: cannot resolve symbol
symbol : class HttpServlet
location: class ExampServlet
public class ExampServlet extends HttpServlet {
^
ExampServlet.java:7: cannot resolve symbol
symbol : class HttpServletRequest
location: class ExampServlet
public void doPost(HttpServletRequest request,
^
ExampServlet.java:8: cannot resolve symbol
symbol : class HttpServletResponse
location: class ExampServlet
HttpServletResponse response)
^
ExampServlet.java:9: cannot resolve symbol
symbol : class ServletException
location: class ExampServlet
throws ServletException, IOException
^
6 errors
I then set the environment vars as follows:
J2EE_HOME=C:\j2sdkee1.3.1
JAVA_HOME=C:\j2sdk1.4.1_02
and added the path:
C:\j2sdkee1.3.1\bin
But when I ran a test serverlet I got an error (listed below). Have I put the paths for the variables in wrong?
Heres the error:
C:\Documents and Settings\rcooper\My Documents\java\practise>javac ExampServlet.
java
ExampServlet.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
ExampServlet.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
ExampServlet.java:5: cannot resolve symbol
symbol : class HttpServlet
location: class ExampServlet
public class ExampServlet extends HttpServlet {
^
ExampServlet.java:7: cannot resolve symbol
symbol : class HttpServletRequest
location: class ExampServlet
public void doPost(HttpServletRequest request,
^
ExampServlet.java:8: cannot resolve symbol
symbol : class HttpServletResponse
location: class ExampServlet
HttpServletResponse response)
^
ExampServlet.java:9: cannot resolve symbol
symbol : class ServletException
location: class ExampServlet
throws ServletException, IOException
^
6 errors