sorry forgot where...

both commands work from console/terminal

or you can add them to your personal bash-config file. put 'em at the
end of
        /home/<yourusername>/.bashrc

or you can add them to the startup-script of tomcat as first lines

        /opt/tomcat/bin/startup.sh

or if you have root access to 

        /etc/bash.bashrc
or      /etc/profile


personally I created a file 

        /opt/setenv.sh

containing these 3 lines

        1       #!/bin/bash
        2       export JAVA_HOME=/opt/jdk1.5.0_174              
        3       export CATALINA_HOME=/opt/Tomcat5.5.17


then made it executable using

        > chmod 755 /opt/setenv.sh

and added 

        /opt/setenv.sh

at the end of my personal bash-config file.

Am Freitag, den 18.12.2009, 04:32 -0800 schrieb VinayTJ:
> Hi all,
> 
> I am new to linux. I wanted to install tomcat on Linux machine.
> i have placed tomcat5.5 in opt/tomcat directory.
> 
> Now the system is expecting to set the enviornmental variables.
> where and how can i set the same? (CATALINA_HOME and JAVA_HOME)
> 
> Thanks,
> Vinay



Ingo Gambin

Brilliant Vorsorge GmbH 
Worringer Str. 2-4 
D-40211 Düsseldorf 

Telefon:          +49 (0) 211 / 61793-0 
Mobil:            +49 (0) 176 / 44 66 66 42
eMail:            igam...@brilliant.de
PGP-Fingerprint:  D316 7343 EA4B 82C7 D96D  6917 3BF3 005A DA46 227F


Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to