Hi there,
I'm having problems with setting a global environment variable (e.g. JAVA_HOME) on Ubuntu 8.04 Server. I've installed JAVA and tomcat manually by extracting them (no, I don't want to use the multiverse packages). I want to start tomcat automatically on the boot of the system. Therefore I've linked the startscript to /etc/init.d/catalina and installed startscripts with
I've also added the following to my /etc/environmentCode:update-rc.d catalina defaults.
If I reboot my system It tries to start tomcat but fails because it can't find the JAVA_HOME variable. If I login I don't have any problems with starting tomcat, the variable seems to be available. echo $JAVA_HOME also shows the correct path.Code:JAVA_HOME="/path/to/my/jre"
What am I doing wrong? is /etc/environment the wrong place for this? I tried adding it to a bunch of different locations (e.g. /etc/bash.bashrc or /etc/profile but according to the documentation /etc/environment should be the right place right?
If this is already documented somewhere please be kind with me, I've already searched around in the web for quite some time now![]()



Adv Reply
Bookmarks