How to Install and Configure Java and Tomcat

Hi Everybody,

I am using the following versions of java and tomcat:

JAVA: j2sdk-1_4_2_13

Tomcat: jakarta-tomcat-5.0.5

I tried to configure several times both but everytime the result is the same. I am setting the following variables:

PATH: .;D:\j2sdk1.4.2_13\bin;D:\Tomcat 5.0\bin

CLASSPATH: .;D:\j2sdk1.4.2_13\lib;D:\Tomcat 5.0\common\lib\servlet-api.jar

JAVA_HOME: D:\j2sdk1.4.2_13

Please correct what mistake i am doing again and again. I appreciate your effort.

Thanks in advance.

Himanshu

[595 byte] By [Higoa] at [2007-11-27 4:15:26]
# 1

mistake? These are only some useless command prompt settings that are of no importance for the installation.

If you are using the correct version of the tomcat installer, which is the self installer executable, the installer will locate the JDK for itself and for the rest you'll have to click next a few times. Afterwards it will work right away as a service.

If you let us know what is going wrong in your installation, somebody *might* be able to help you.

(I'm thinking about a very strict firewall that is blocking access to the default port 8080 for example)

gimbal2a at 2007-7-12 9:21:48 > top of Java-index,Java Essentials,New To Java...
# 2

Fine sir, I will tell evrything in detail what steps i am following during installation and configuring java and Tomcat.

1) I am using the following versions(exe) of java and tomcat:

JAVA: j2sdk-1_4_2_13-windows-i586-p

Tomcat: jakarta-tomcat-5.0.5

2) Then, i follow exactly the same variable names and values to configure java as mentioned below to make java work under User variables header:

PATH: .;D:\j2sdk1.4.2_13\bin

CLASSPATH: .;D:\j2sdk1.4.2_13\lib

JAVA_HOME: D:\j2sdk1.4.2_13

Above steps i follow only for installing java. And it also not working properly. If i run my .java file from the destination of the file then it will be execulted but if i try to execute from any other location then it doesn't, it shows the following message in the DOS prompt:

error: cannot read: Hello.java

1 error

Now, please correct what mistake i am doing.

Thanks

Himanshu

Higoa at 2007-7-12 9:21:48 > top of Java-index,Java Essentials,New To Java...
# 3
Thanks for replying gimbalI m new to this so please help me out how do i install an dconfigure java and tomcat.Thanks again
Higoa at 2007-7-12 9:21:48 > top of Java-index,Java Essentials,New To Java...
# 4

Hi, right now i'm using Apache-tomcat-5.5, i'm just only change the port address from 8080 to 7070 during installation coz the 8080 is reserved for oracle(if u already installed oracle). no need to configure classpath. Anyway i also have the old version Apache-tomcat 4.3. Below are the classpath that i'm setting in SYSTEM VARIABLES(not USER VARIABLES):

JAVA_HOME: path of JDK, i'm using C:\Program Files\Java\jdk1.5.0_06

CATALINA_HOME: path of Tomcat, I'm installed in C:\Tomcat_Home

Hope this information can help u.

Awit19a at 2007-7-12 9:21:48 > top of Java-index,Java Essentials,New To Java...
# 5
Sory2 i forgot to tell u, that classpath is just for Apache Tomcat 4.3 not the Apache Tomcat 5.5
Awit19a at 2007-7-12 9:21:48 > top of Java-index,Java Essentials,New To Java...
# 6
hi awit,thanks for your help but it not working. Can you first guide me how to configure java and what steps shold i follow. i already mentioned the steps and evrsion i am using.thankshimanshu
Higoa at 2007-7-12 9:21:48 > top of Java-index,Java Essentials,New To Java...