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,
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
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
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