2

Heres the error:warning: current package is oracle-java8, but binary format already installed by openjdk-7. i used the purge command on openjdk before i tried to install Oracle Java 8 . now I'm at a loss.

15
  • 1
    What command is giving you that error? Mar 20, 2014 at 15:15
  • @ElliottFrisch I used the instructions from link to remove OpenJdk... or at least i thought i did. to install i used Linkto install Java 8 via PPA. Mar 20, 2014 at 15:57
  • So you used sudo apt-get purge openjdk*? Mar 20, 2014 at 15:58
  • @ElliottFrisch Yes. Mar 20, 2014 at 16:02
  • And how are you installing Oracle Java 8? Mar 20, 2014 at 16:02

1 Answer 1

3

First, reinstall openjdk. Then install Java 8. Then run update-java-alternatives to select Java8. Finally, (optionally) try to remove openjdk. The cost of keeping the previous version (in disk space) is pretty low (because modern disks just keep getting bigger).

Once you have Java 8 installed, you need to set it as your JVM -

sudo update-java-alternatives -s java-8-oracle

Then you can verify that you have it selected correctly by

java -version
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .