java - JAVA_HOME default in ubuntu -


i using ubuntu 14.0.4... java_home /usr/lib/jvm/java-7-oracle though uninstalled java...

i manually set /usr/lib/jvm/jdk1.8.0_71 in etc/environment. $echo java_home shows /usr/lib/jvm/java-7-oracle.

how resolve issue , how use jdk1.8.0_71 in java_home.

try edit ~/.profile.
add line @ bottom:

java_home="/usr/lib/jvm/jdk1.8.0_71"  

after editing, close console (terminal) window , open new. test echo java_home.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -