The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can I export the users environment using sudo? julesdiane UNIX for Dummies Questions & Answers 1 05-22-2008 05:57 PM
export variable. its-ashish UNIX for Dummies Questions & Answers 5 02-20-2007 02:24 AM
How to export the Display variable FredSmith UNIX for Dummies Questions & Answers 1 06-19-2006 06:07 AM
Export command giving Variable Name vs the Value set for the Variable ParNone UNIX for Dummies Questions & Answers 2 04-03-2006 08:43 AM
Syntax to export any variable malaymaru Shell Programming and Scripting 5 05-17-2005 01:16 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-23-2007
Registered User
 

Join Date: Nov 2007
Posts: 2
Stumble this Post!
[ Environment Variable ] Probleme with export JAVA_HOME

Hi,

I want to create a new environment variable (JAVA_HOME), but when I open a new shell this varible is delete...
to create the variable I do :
Code:
export JAVA_HOME=/usr/java/jdk
and I verify with :
Code:
echo $JAVA_HOME
and it's work...
But When I open a new shell this variable is forget...
( It does the same thing with PATH...)

Do you know why it does this?? And how to fix it?

Rem : I have ever done this way to change my variable PATH and it has worked...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-23-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Put it in "$HOME/.profile" or whatever similar file your system uses.
Reply With Quote
  #3 (permalink)  
Old 12-06-2007
Registered User
 

Join Date: Nov 2007
Posts: 2
Stumble this Post!
[resolved]

I've changed the file : /etc/profile
(the change will be apply for all the users)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0