Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2007, 03:03 AM
Authorized User
 
Join Date: Dec 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to annumol
Default PATH Setting of tomacat in linux

Sir,

I have a doubt about apache tomcat using linux.I installed apache Tomcat4.1 in linux.I set path through terminal (bash)window in user account. For that I type the following commands

export JAVA_HOME=/usr/java/j2sdk1.4.1_01
export CATALINA_HOME=/usr/local/java/tomcat4/apache-tomcat-4.1.36
export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
export CLASSPATH=$CLASSPATH:$CATALINA_HOME/common/lib/servlet.jar

these are the commands I typed for setting path.
Then I change my account to ROOT
Then I start apche by typing

startup.sh

&

Shutdown by typing

shutdown.sh

Everything work nicely.But after i close my terminal window things are going wrong.apache is not work.if i am again open terminal window and type starting command again(startup.sh).it says command is not existing. again i set path it will work properly till terminal window
closing.I think it is the problem of path setting.I know to set path in windows through Environment Variables.But I dont know how to set path permanentlt in linux.Please help me to solve my problem
Thanking you advance

Anu


 
Old December 20th, 2007, 03:17 PM
Registered User
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if you're using SSH shell to linux, you should see a .bash_profile file in your home directory.
set the environment variables there and it will load each time you log in
for example, my bash file:

# User specific environment and startup programs

JAVA_HOME=/home/efurrer/jdk1.5.0_11 export JAVA_HOME
PATH=$PATH:$HOME/bin:$JAVA_HOME:$JAVA_HOME/bin:$HOME/appia-3.3-bin/bin:$MAVEN_HOME/bin
export PATH

 
Old December 21st, 2007, 01:02 AM
Authorized User
 
Join Date: Dec 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to annumol
Default

Quote:
quote:Originally posted by koka
 if you're using SSH shell to linux, you should see a .bash_profile file in your home directory.
set the environment variables there and it will load each time you log in
for example, my bash file:

# User specific environment and startup programs

JAVA_HOME=/home/efurrer/jdk1.5.0_11 export JAVA_HOME
PATH=$PATH:$HOME/bin:$JAVA_HOME:$JAVA_HOME/bin:$HOME/appia-3.3-bin/bin:$MAVEN_HOME/bin
export PATH

Thank you koka.It is working nicely.Thanks again

 
Old December 24th, 2007, 12:16 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

http://www.linuxheadquarters.com/howto/basic/path.shtml


- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while setting class path sujithmathew Linux 1 August 3rd, 2007 01:02 PM
Retriving UNC Path of mapped drive (Linux Folder) kaushalparik ASP.NET 2.0 Professional 2 April 5th, 2007 09:58 PM
Setting up the path and classpath Yvette Java Basics 0 December 14th, 2005 10:13 PM
Problem in setting java.library.path kuldeept Apache Tomcat 0 March 22nd, 2005 03:50 AM
Class path setting pedr0 BOOK: Beginning Java 2 5 July 26th, 2004 03:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.