I have Oracle Java 7 on my system and want to install Eclipse and make it use Java 7 instead of openjdk.

I installed Eclipse earlier using synaptic but after doing check updates it didn't work properly, so i removed it along with residual config.

I am new to linux


Have a look at the shortest answer to this question.

It tells you to edit the eclipse.ini file so Eclipse can use Oracle's JDK7.

| improve this answer | |
add-apt-repository -y ppa:webupd8team/java

apt-get update

echo debconf shared/accpeted-oracle-license-v1-1 select true | debconf-set-selections

echo debconf shared/accpeted-oracle-license-v1-1 seen true | debconf-set-selections

apt-get -y install oracle-java8-installer
| improve this answer | |
  • 5
    You could try to be a bit more elaborate what the commands do :) – Videonauth Jul 3 '16 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.