1

I am using ubuntu 14.0.4... JAVA_HOME is always /usr/lib/jvm/java-7-oracle even though i uninstalled java...

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

How to resolve this issue and how to use my jdk1.8.0_71 in JAVA_HOME.

1
  • Maybe this may help? Commented Jul 28, 2016 at 10:25

2 Answers 2

2

Try edit ~/.profile.
Add line at bottom:

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

After editing, close console (terminal) window and open new. Test with echo JAVA_HOME.

Sign up to request clarification or add additional context in comments.

Comments

1

from terminal:

vi ~/.bash_profile

than change:

export JAVA_HOME= path_to_java_here

than:

source ~/.bash_profile

verify with:

echo $JAVA_HOME

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.