LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2005, 09:13 PM   #1
nasht
LQ Newbie
 
Registered: Apr 2004
Location: Los Angeles
Distribution: Fedora Core 4
Posts: 29

Rep: Reputation: 15
environment variable at boot


Hi,
I want to run Tomcat at startup.
For that, I need the variable JAVA_HOME to be defined.

I edited /etc/rc.d/rc.local

and added this:
export JAVA_HOME="/opt/jdk1.5.0_04"
export CATALINA_HOME="/opt/jakarta-tomcat-5.5.9"
/usr/local/sbin/pure-ftpd &
/usr/local/apache2/bin/apachectl start
/opt/jakarta-tomcat-5.5.9/bin/startup.sh

pure-ftpd and apache starts fine, but tomcat doesn't.
It says that JAVA_HOME is not defined.
Is there something wrong with my syntax?
Or maybe rc.local does not accecpt that type of statement?

Please help,

Thanks
 
Old 08-18-2005, 09:53 PM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
Try:
JAVA_HOME="/opt/jdk1.5.0_04"
export $JAVA_HOME
 
Old 09-16-2005, 03:51 AM   #3
scapefinder
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
edit the /etc/profile and add the following lines:

JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/tomcat

export JAVA_HOME CATALINA_HOME
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
environment variable gamor Linux - Newbie 4 04-30-2005 05:28 PM
Environment Variable salmanucit Linux - Software 2 07-21-2004 02:27 AM
How to set an environment variable? dantemarmol Linux - Newbie 7 08-22-2003 10:59 AM
environment variable mimi Linux - Newbie 1 04-10-2002 08:29 AM
environment variable mimi Linux - General 2 04-10-2002 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration