LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to set JAVA_HOME (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-set-java_home-683934/)

mahi 11-16-2008 11:21 PM

unable to set JAVA_HOME
 
hello people....
I was trying to install apache-tomcat on my debian system....
prior to it it asked me to install JDK...
i did tat successfully....
but at the i am unable to set JAVA_HOME variable...
that is even after editing /etc/profile
i added these two lines after export PATH in tat file

JAVA_HOME="/usr/lib/jdk"
export JAVA_HOME

to install tomcat this variable needs to be set...
so anybody with any idea please help.....
thank you...

yowi 11-17-2008 12:09 AM

assuming you are using bash try /etc/bash.bashrc
this somewhat confusing behaviour of bash is described in the INVOCATION section of the bash manpage

Note that only new shells pick up the changes.

jay73 11-17-2008 02:04 AM

export $JAVA_HOME


All times are GMT -5. The time now is 03:12 PM.