Wednesday, November 10, 2010

Remove open jdk and installed Sun Java on Ubuntu

Ubuntu installs OpenJDK as default Java since version 8.04. Many programs require Sun Java to work and just installing Sun Java did not solve the issue for me. There are many guides that help you uninstall and reinstall many packages. The simplest method is to

Remove the following from Ubuntu Software Center :-


  1. openJDK Java6 runtime
    1. icedtea 6 plugin
    2. libaccess bridge java
  2. openJDK java 6 web start
and then install:-
  1. sun-java6-jre
  2. sun-java6-jdk
  3. sun-java6-plugin 

3 comments:

  1. Well, You can run many JVMs on a single machine right, so no need to remove OpenJDK. Just choose the default using:
    "sudo update-alternatives --config java"

    ReplyDelete
  2. correct if you want to test. But I rely on Sun Java since many programs require that to be installed

    ReplyDelete
  3. i am very new to the ubuntu os. i am trying to play minecraft on my computer, i looked up some info on how to get minecraft to work. i was told to remove openjdk, but i dont know how i go about doing that. can someone enlighten me on this please?

    ReplyDelete

Thank you for your feedback