Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help me with Global Env... PLEASE 1

Status
Not open for further replies.

iwannabeit

IS-IT--Management
Jun 13, 2006
13
CA
hi, could someone please help or give me guidance, im a newb and not the best scripter.... k, here goes, ill try to be as quick and concise as possible.

Makin a linux server, it needs JRE, its installed, no problems there, but I have to (according to instructions word for word)
------------------------------------------------------------
-Create global env by editing /etc/profile put in JAVA_HOME to point to new java locale. OR in the tomcat user and root user ~/.profile file. Example from a /etc/profile file:

JAVA_HOME="/usr/java/jrel1.5.0__6"
------------------------------------------------------------

can someone tell me where to stick this in the profile??? thanx, im stumped stumped stumped stumped stumped.


...Hey now...
 
Do the following as root:

Type vi /etc/profile

Press "}" until you get to the end of the file.

Type a for append.

Press Enter (<CR>).

Type JAVA_HOME="/usr/java/jrel1.5.0__6"

Press ESC.

Type :wq

Then the next time that you boot, or when you restart the tomcat service, that environment variable should be set.


pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top