LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-20-2006, 02:52 AM   #1
petertavenier
LQ Newbie
 
Registered: Apr 2006
Location: South-Africa, Pretoria
Distribution: SUSE 10.0 OSS (32-bit)
Posts: 12

Rep: Reputation: 0
Question my JAVA_HOME environment variable changes automaticly


hello I have a problem with my JAVA_HOME environment variable

what I do:
export JAVA_HOME=/opt/SUNWappserver/jdk/
export PATH=$PATH:$JAVA_HOME/bin/

this is ok, but when I restart my PC
echo $JAVA_HOME
is another directory!?

I just want it to be te same every time.
Help..
Peter
 
Old 04-20-2006, 03:10 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
What does it say after the boot?

And what distro are you using?

Commonly that kind of thing will be set a) globally in
/etc/profile/<some_script> or b) individually in ~/.bashrc


Cheers,
Tink
 
Old 04-20-2006, 03:13 AM   #3
petertavenier
LQ Newbie
 
Registered: Apr 2006
Location: South-Africa, Pretoria
Distribution: SUSE 10.0 OSS (32-bit)
Posts: 12

Original Poster
Rep: Reputation: 0
found it

I found the problem,

I'm running SUSE 10.0 32bit.
I went to /etc/profile.d/
and changed the variable manual in alljava.sh and alljava.csh

tnx, Peter
 
Old 04-20-2006, 03:30 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Good on yah! :}


Cheers,
Tink
 
  


Reply

Tags
environment, variable


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
# ./startup.sh Neither the JAVA_HOME nor the JRE_HOME environment variable is defined Niceman2005 Linux - Newbie 3 06-29-2005 02:58 PM
environment variable gamor Linux - Newbie 4 04-30-2005 06:28 PM
JAVA_HOME Variable yea420 Linux - Software 6 08-29-2004 07:37 PM
Environment Variable salmanucit Linux - Software 2 07-21-2004 03:27 AM
environment variable mimi Linux - General 2 04-10-2002 08:45 AM


All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration