Operating System - HP-UX
1835910 Members
2743 Online
110086 Solutions
New Discussion

Global Enviroment Variable

 
SOLVED
Go to solution
pc123_1
Frequent Advisor

Global Enviroment Variable

Hello.
I would like to set up a global enviroment variable (JAVA_HOME) for Tomcat. What file should I use?
.profile will work only for individual users?

2 REPLIES 2
RAC_1
Honored Contributor
Solution

Re: Global Enviroment Variable

Ask your system administrator to put it in the following line in etc/profile file

export JAVA_HOME=your_java_directory

It will be avaible to everyone.
There is no substitute to HARDWORK
Michael Tully
Honored Contributor

Re: Global Enviroment Variable

Have the person who looks after your system to put this in the /etc/profile file as an example.

export JAVA_HOME=/opt/java

HTH
Mick
Anyone for a Mutiny ?