1

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

frlan
  • 1,030
  • 5
  • 17
pulkit
  • 321
  • 1
  • 4
  • 10

2 Answers2

0

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.

s3lph
  • 14,314
  • 11
  • 59
  • 82
0
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
Videonauth
  • 33,355
  • 17
  • 105
  • 120