This bit of text in the servlet instructions has a link to Sun for downloading the EE JDK
Download the J2EE SDK(Java 2 Enterprise Edition Software Development Kit) from Sun, and install it. It is a supplement to the JDK you already have installed. You need to include the javaee.jar in your classpath.
I found the download at Oracle, but it has something called Glass Fish. Do I need/want it?
The Hanging Kludge
Marilyn de Queiroz
Joined: Jul 22, 2000
You do not need GlassFish.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Sep 21, 2011
J2EE is way obsolete. AFAIK, for JEE (the current incarnation of J2EE), there is no download that does not contain GlassFish.
If this is just about servlets, then any servlet container (like Tomcat) includes the servlet-api.jar and jsp-api.jar files you'd need for servlet/JSP development.
Joined: Apr 07, 2011
OK, I got it set up so I can compile servlet code. As far as I can tell, you have to download GlassFish and there is no option to exclude it from installation.