Meaningless Drivel is fun!
The moose likes Servlets and the fly likes which jdk for tomcat?  j2ee or j2se?  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "which jdk for tomcat?  j2ee or j2se?  " Watch "which jdk for tomcat?  j2ee or j2se?  " New topic

which jdk for tomcat? j2ee or j2se?

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I'm trying to install Tomcat on my development machine. Which JDK do I need--the one for J2EE or J2SE? I already code in Java using J2SE 1.4.2, and I just downloaded the J2EE SDK:
However, I don't want to install it if I don't need it. I'm really not clear on which one I need for running a servlet/JSP app in Tomcat. It seems like for J2EE-related stuff I would have to have this J2EE SDK, but I've read stuff elsewhere online that seems to just require the J2SE SDK. Any clarifying comments would be greatly appreciated!
And to clarify...I did see this post. But I'm confused b/c it says you don't need J2EE unless you use JavaBeans. Our server is currently running a web app (that I/we didn't develop) and I know that J2SE is installed b/c I get feedback from typing java at the command prompt but not when I type j2ee. The app uses beans, but I'm wondering if the difference is that you have to have J2EE in order to use *Enterprise* JavaBeans...this seems like it should be so simple for me to understand, but I want to make sure!
[ August 15, 2003: Message edited by: Stephen Huey ]
[ August 15, 2003: Message edited by: Stephen Huey ]
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Tomcat requires only J2SE. It provides (in servlet.jar) the J2EE classes that you need.

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Stephen, you're right.

it's *enterprise* javabeans that require a EJB container, and by inference, j2ee.jar.
I agree. Here's the link:
subject: which jdk for tomcat? j2ee or j2se?
It's not a secret anymore!