I'm following this link to install Oracle Java 8.
Maybe I got this wrong, but I suppose JAVA_HOME should be set after installing oracle-java8-set-default
.
If I echo $JAVA_HOME
or printenv | grep -i java
nothing comes up. I'm using Linux Mint 17.1 (Rebecca)
Thanks!
You need to run also the command:
sudo apt-get install oracle-java8-set-default
as described in WebUpd8 site, then you need to logout and login back again, since the specific command creates two files under /etc/profile.d, named jdk.sh and jdk.csh which populate the environment with JAVA_HOME etc.
Your JAVA_HOME will not be set by the webupd8 method, and you don't normally need it (because the update-java-alternatives
script manages the environment). If you're looking for the folder it's under "/usr/lib/jvm" and you can certainly do
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
and you can also test which Java is active with
java -version
or
java -fullversion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With