Solved

J2EE & Tomcat ?

Posted on 2004-04-07
11
499 Views
Last Modified: 2013-11-24
Hi Experts,

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

 meow.
0
Comment
Question by:meow00
11 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776167
No,it is included.
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776194
If you plan to deploy on Tomcat you would want to download and install it separately from the J2EE SDK.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10776335
Wow! - so Sun are shipping Tomcat with it then o?
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776379
Yup, it is the embedded version of Tomcat.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10776525
Ah thanks.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10776663
My pleasure! :-)
0
 
LVL 1

Author Comment

by:meow00
ID: 10776678
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
 

Expert Comment

by:hyaku
ID: 10780627
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
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10780674
>>  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
 
LVL 30

Expert Comment

by:mayankeagle
ID: 10780852
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
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 150 total points
ID: 10780962
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now