J2EE & Tomcat ?

Hi Experts,

   If I already installed J2EE 1.4 , do I still need to get the Tomcat ? Thanks !

 meow.
LVL 1
meow00Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Tommy BraasConnect With a Mentor Commented:
Of course you will have to make sure that the appropriate jars are on the classpath of your development environment in order to compile whatever classes you create.  But like stated before, you have everything you need to develop and deploy JSPs/Servlets and EJBs with the J2EE 1.4.1 SDK. If you have questions regarding how to set things up in your IDE, you should open a new question as I think this question has been answered.
0
 
Tommy BraasCommented:
No,it is included.
0
 
Tommy BraasCommented:
If you plan to deploy on Tomcat you would want to download and install it separately from the J2EE SDK.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CEHJCommented:
Wow! - so Sun are shipping Tomcat with it then o?
0
 
Tommy BraasCommented:
Yup, it is the embedded version of Tomcat.
0
 
CEHJCommented:
Ah thanks.
0
 
Tommy BraasCommented:
My pleasure! :-)
0
 
meow00Author Commented:
err ..... so it's me again .. in order to run the following code, do I need Tomcat if I already have J2EE 1.4 ?

import java.io.* ;
import javax.servlet.* ;
import javax.servlet.http.* ;

public class ServletTemplate extends HttpServlet{
   public void doGet(HttpServletRequest request,
                     HttpServletResponse response)
               throws ServletException, IOException{
           PrintWriter out = response.getWriter() ;
          }
}

thanks a lot !!!

meow.
0
 
hyakuCommented:
not sure whether i right or wrong.. base on what i have learn is that in order to run a servlet, u need to use Tomcat to run it..cos inside Tomcat lib got a servlet.jar, without that jar file, u cannot run ur code..

if i'm wrong, pls correct me, i still learning.. hehe
0
 
Tommy BraasCommented:
>>  err ..... so it's me again .. in order to run the following code, do I need Tomcat if I already have J2EE 1.4 ?
No, you already have everything that you need in order to develop and deploy JSPs/Servlets and EJBs
0
 
Mayank SAssociate Director - Product EngineeringCommented:
The question is - were you able to run that code or not? If not, then there might be some problems (like classpath, putting your class-files in /classes, etc)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.