You could add your JAVA_HOME, FEDORA_HOME, and CATALINA_HOME exports to your 
tomcat/bin/catalina.sh.  That always seems to work for me.


From: Patrick M. McLeod [mailto:[email protected]]
Sent: Wednesday, July 01, 2009 1:54 PM
To: [email protected]
Subject: [Fedora-commons-users] JAVA_HOME / JRE_HOME Error Message When 
Starting Fedora Commons

Good afternoon everyone,

First, the basics:

Ubuntu 8.04 server
Fedora Commons 3.2 jar installer
Tomcat installed from 'included' option
FEDORA_HOME=/usr/share/fedora
CATALINA_HOME=/usr/share/fedora/tomcat/bin
JAVA_HOME=/usr/libs/jvm/java-6-sun
All of the the above environment variables are declared in ~/.bashrc

Here is my dilemma: Whenever I attempt to start Fedora Commons, I receive this 
message: "Neither the JAVA_HOME nor the JRE_HOME environment variable is 
defined" "At least one of these environment variable is needed to run this 
program"

My JAVA_HOME variable is defined in my ~/.bashrc. I've also exported JRE_HOME 
to the proper path immediately before attempting to start Fedora Commons and no 
matter which course I chart, I end up with the same error message I reference 
above.

I found a thread on the Ubuntu forums dealing with this issue when installing 
Tomcat5.5 from the apt repositories that indicates a solution by editing 
Tomcat's default JAVA_HOME variable. The location of the file to edit, 
/etc/default/tomcat5.5, however, is only found if you install Tomcat5.5 
separately instead of using the Tomcat instance that is bundled with the Fedora 
Commons installer.

Has anyone encountered a problem like this before? I'm fairly certain that it's 
not my ~/.bashrc as I can echo back all the correct paths. Am I missing a 
config file somewhere in the included Tomcat installation?

Regards,

Patrick
------------------------------------------------------------------------------
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to