aspose file tools*
The moose likes Tomcat and the fly likes Setup J2EE SDK 1.4.01 & Tomcat 5.5.7 environmental variables in Win XP SP2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setup J2EE SDK 1.4.01 & Tomcat 5.5.7 environmental variables in Win XP SP2" Watch "Setup J2EE SDK 1.4.01 & Tomcat 5.5.7 environmental variables in Win XP SP2" New topic
Author

Setup J2EE SDK 1.4.01 & Tomcat 5.5.7 environmental variables in Win XP SP2

John Croucher
Greenhorn

Joined: Sep 29, 2003
Posts: 9
Hi,
I need help getting Tomcat running. I have searched Javaranch's Apache/Tomcat forums, Sun's Java forums, and Google, but cannot find an anwser. I also tried the Tomcat and J2EE documentation but was still unable to resolve this.

I have a fresh install of Win XP SP2. Using the default setups, I have just installed:
-j2eesdk-1_4_01_2005Q1-windows.exe (All-In-One Bundle from http://java.sun.com/j2ee/1.4/download.html#sdk )
-jakarta-tomcat-5.5.7.exe(Binary from http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi )

Everything I have read says to set the environmental variables to something like this:
JAVA_HOME: C:\j2sdk1.4.0_01\
PATH:C:\j2sdk1.4.0_01\bin;

But here lies the problem:
I do not have a directory called C:\j2sdk1.4.0_01. I have:
- C:\Sun\AppServer
- C:\Program Files\Apache Software Foundation\Tomcat 5.5

What I need help with is setting the following variables:
- J2EE_HOME
- JAVA_HOME
- CLASSPATH
- Path

Any help you can provide is sincerly appreciated.

John,
Athens, OH


John M Croucher<br />Athens, OH
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat ships with the J2EE components that it needs.
You will only need an SDK. (standard edition).

For Tomcat 5.5, you will need at least version 1.5
which at the time of this posting is being called J2SE 5.0.

You can also get away with j2sdk1.4.xxx if you download and install the compat package as described in the Tomcat documentation.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
John Croucher
Greenhorn

Joined: Sep 29, 2003
Posts: 9
Ben,
You mentioned Tomcat ships with the J2EE components that it needs and that I only need an standard edition SDK.

Would you recommend I uninstall the J2EE SDK 1.4.01 and install J2SE 5.0?

Thanks,
John
[ April 02, 2005: Message edited by: John Croucher ]
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Yes.

Tomcat ships with the J2EE components that it needs.


What that means is that only the SERVLET/JSP packages of the Java Enterprise Edition are bundled in the TOMCAT installation. But since TOMCAT is a servlet/jsp container, jou have all of the J2EE components you will need.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setup J2EE SDK 1.4.01 & Tomcat 5.5.7 environmental variables in Win XP SP2