[SOLVED] Java - JAVA_HOME doesn't return the Java path

Started by wizard32, October 19, 2014, 09:41:09 PM

Previous topic - Next topic

wizard32

Hi,

After the new clean installation of BackBox 4 i tried to install some tools that requires Java installation path. I can verify that Java is currently installed on my system:

java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.2) (7u65-2.5.2-3~14.04)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)


and also I checked the path that Java is installed:

update-alternatives --list java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java


But if I would like to export the JAVA_HOME doesn't return nothing:

echo $JAVA_HOME

I tried to export it adding the following command in ~/.bashrc

export $JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/

But still after that the script installer it's not able to find the path.

It's something that I'm doing wrong or I need to specify the Java path in another file?

Thanks.