making setenv 'stick'
this is one for any unix gurus:
i'm remotely accessing my ibook via ssh and starting and stopping jakarta tomcat from the bin directory with ./startup.sh and ./shutdown.sh
when i start afresh each day, i ALWAYS get an error saying JAVA_HOME environment variable is not set.
i set it with setenv JAVA_HOME /Library/Java/Home which works with no problem
BUT, how do i make this variable 'stick' so i don't need to keep entering it each day?
thanks in advance.
i'm remotely accessing my ibook via ssh and starting and stopping jakarta tomcat from the bin directory with ./startup.sh and ./shutdown.sh
when i start afresh each day, i ALWAYS get an error saying JAVA_HOME environment variable is not set.
i set it with setenv JAVA_HOME /Library/Java/Home which works with no problem
BUT, how do i make this variable 'stick' so i don't need to keep entering it each day?
thanks in advance.
Comments
thanks!
IIRC there's a way to do it so it's universal and not on a per script basis... oh well. i'm just glad to get it working
<strong>i had to use export JAVA_HOME="/Blah/Blah" from within the scripts but it works.
thanks!
IIRC there's a way to do it so it's universal and not on a per script basis... oh well. i'm just glad to get it working
As 1337_5L4Xx0R said.
It should work for all scripts if you put [ export JAVA_HOME="/Blah/Blah" ] in startup.sh
Other shells have their own ...rc files.
If JAVA_HOME is only used by jakarta, then adding it to startup.sh and shutdown.sh might be best.