LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   my JAVA_HOME environment variable changes automaticly (https://www.linuxquestions.org/questions/linux-newbie-8/my-java_home-environment-variable-changes-automaticly-437006/)

petertavenier 04-20-2006 01:52 AM

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

Tinkster 04-20-2006 02:10 AM

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

petertavenier 04-20-2006 02:13 AM

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

Tinkster 04-20-2006 02:30 AM

Good on yah! :}


Cheers,
Tink


All times are GMT -5. The time now is 09:25 PM.