LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-10-2008, 04:12 PM   #1
gogoabc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
Install tomcat6.0.18 JAVA_HOME/JRE_HOME problem


Firstly, I installed java-6-sun
then I downloaded tomcat6.0.18
then I set JAVA_HOME with every method(in ./.bashrc, /etc/profile, etc) I can find online.
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
Also, I have the result:

tai@avaceratops:~$ echo $JRE_HOME
/usr/lib/jvm/java-6-sun/jre

however, when I try to start tomcat, I got:
tai@ubuntu:/$ sudo /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr

it's weird, it should be Using JRE_HOME: /usr/lib/jvm/java-6-sun/jre in my last line based on the value of my JRE_HOME
can anyone give me any hint? thank you!
 
Old 11-11-2008, 09:02 AM   #2
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
Did you set JAVA/JRE_HOME as root ? You are doing "sudo /usr/local/tomcat/bin/startup.sh", so startup.sh will not use your environment.

You should try "sudo -E /usr/local/tomcat/bin/startup.sh". (and read sudo man page
 
Old 11-13-2008, 02:32 PM   #3
gogoabc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vladmihaisima View Post
Did you set JAVA/JRE_HOME as root ? You are doing "sudo /usr/local/tomcat/bin/startup.sh", so startup.sh will not use your environment.

You should try "sudo -E /usr/local/tomcat/bin/startup.sh". (and read sudo man page
Thank you, I used sudo -E and the output of JRE is right this time. However, Tomcat won't start.

Finally, I used tomcat5.5 and it works.
 
  


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
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined xpucto Linux - Newbie 8 04-21-2020 02:26 PM
Installing TOMCAT6.0.14 - JAVA_HOME problem snowball2 Linux - Newbie 11 11-11-2008 02:37 AM
problem setting JAVA_HOME pkpro1 Linux - General 5 11-25-2007 08:49 AM
Neither JAVA_HOME nor the JRE_HOME variable defined Raakh Linux - Newbie 9 06-02-2007 06:40 AM
# ./startup.sh Neither the JAVA_HOME nor the JRE_HOME environment variable is defined Niceman2005 Linux - Newbie 3 06-29-2005 01:58 PM

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

All times are GMT -5. The time now is 06:27 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
Open Source Consulting | Domain Registration