Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

setting a variable

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
elisman
Posts: 4
Joined: 2005-10-26 18:26
Contact:

setting a variable

#1 Post by elisman »

Hey,

I just installed J2SE on my debian machine. Now i tried to set $JAVA_HOME to all users.

For this i edited /etc/profile and added export JAVA_HOME=...

reboot...

And now JAVA_HOME is set only for my root user. Why?

I also tried to edit .bash_profile from the home directory of the user adding exactly the same lines, but it does not work.

Why do i have $JAVA_HOME set at my root user, but not at my regular user?

Thanks,

broberts
Posts: 13
Joined: 2005-11-10 20:22

#2 Post by broberts »

odd... /etc/profile should be user wide... are you setting this for a jsp server?? ie tomcat or resin? I find both are usually pretty good at finding java anyway

you say that it DOES show up for root though?? so you must have the syntax correct.

I usually set my user var's in .bashrc... ie export JAVA_HOME = /java/directory

works fine when I echo $JAVA_HOME

Post Reply