openSUSE Forums > Archives > SF Archives > ARCHIVES - Software » Setting Java_home....

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Software
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Software Questions about use, installation, or configuration of software running on SUSE Linux

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Oct-2007, 21:22
jamiec4
Guest
 
Posts: n/a
Thumbs up

I use suse10.2 and am trying to set the JAVA_HOME variable. Problem is, is it's not saving. I set it (export JAVA_HOME=/path/to/java) and as soon as i reboot the system or even shut down the terminal it disappears. What am I doing wrong or is there another command I don't know about?
Any help would be greatly appreciated. <_<
  #2 (permalink)  
Old 03-Oct-2007, 21:48
ken_yap
Guest
 
Posts: n/a
Default

export only exports the variable setting to children of the current shell. When you log out, your shell exits and the setting disappears.

To make it "permanent" you need to set it in your login scripts. Usually $HOME/.bashrc is the place.
  #3 (permalink)  
Old 04-Oct-2007, 03:42
jonmartin
Guest
 
Posts: n/a
Default

Quote:
export only exports the variable setting to children of the current shell. When you log out, your shell exits and the setting disappears.

To make it "permanent" you need to set it in your login scripts. Usually $HOME/.bashrc is the place.
[/b]
Or to set it for all users, put it in a (pro)file; /etc/profile.d/java.sh or something.
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2