Results 1 to 4 of 4
I installed Java on a server and anytime I have to start or stop a service that requires the $JAVA_HOME variable I have to manually set it with the export ...
- 08-06-2010 #1
Permanently Setting Environmental Variables
I installed Java on a server and anytime I have to start or stop a service that requires the $JAVA_HOME variable I have to manually set it with the export command such as:
How can I permanently set this variable?Code:export JAVA_HOME=/usr/java-jdk1.6.0_21
Have some smileys:



- 08-07-2010 #2
What service are you start/stopping?
Add:
to the init.d script of that service, these script are located in /etc/init.d directoryCode:export JAVA_HOME=/usr/java-jdk1.6.0_21
- 08-07-2010 #3
Its JIRA built into a tomcat web server so there is no init script. The service has to be started manually with a shell script. Can I just add the export line to the user's .bashrc?
- 08-08-2010 #4


Reply With Quote
