I just wrote my first servlet but the compiler can't find the supporting J2EE 1.4 API.... It doesn't recognize any of the Servlet classes i.e. HttpServletRequest, HttpServletResponse, ServletException....
I have downloaded the J2EE1.4 bundle and set environmental variables, but I'm obviously pointing the vm down the wrong path. Does anyone know the name of the target folder that contains the additional api code?
I already had J2sdk1.4 - the path to this is assigned to JAVA_HOME
Do I substitute this with the new path? Can I have both, taking into consideration that the J2EE bundle also contains another copy of jdk?
Do I set the path to go to the bin directory of the server: C:\Sun\AppServer\bin OR set the path to the bin directory of the jdk within the J2EE bundle? C:\Sun\Appserver\jdk\bin
If you have the J2EE 1.4 bundle you should have a file called j2ee.jar in your %J2EE_HOME%\lib\ directory. Put j2ee.jar in your classpath when compiling and you'll be fine. You do not need to distribute this in your web app/ejb app when you deploy since the server you will be running on will have it's own implementation of these classes.