Problems with setting the JAVA_HOME variable
I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell.
This is a question for the 'Linux Newbie' forum (not slackware-specific), and I have posted it there some hours ago, however, nobody is answering there to it, and I am still stuck with the problem.
I have set JAVA_HOME in my /etc/profile, like this:
but when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
and when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get:
error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/java/bin/java.
Thanks a lot.