Monday, April 30, 2012

Change the default Java installation used by Ubuntu


Though you have installed and using a particular Java installation (E.g. Oracle Java 7), sometimes when you install some other softwares they might change the default to other Java installations (E.g. OpenJDK)

In such situations to change the default version, run the following commands and chose the appropriate selection when prompted.

For Java :
update-alternatives --config java
For Java compiler :
update-alternatives --config javac
For Java web start :
update-alternatives --config javaws

9 comments:

  1. update-alternatives --config java
    with this every time I need to enter 1 or 2..
    There must be some other way for single line command?

    ReplyDelete
  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training JavaEE Training in Chennai Java EE Training in Chennai

    ReplyDelete
  3. I have read your blog its very attractive and impressive. I like it your blog. Java Training in Chennai

    ReplyDelete
  4. Hello!! I'am glad to read the whole content of this blog and am very excited.Thank you.

    gclub casino
    goldenslot casino
    goldenslot

    ReplyDelete
  5. Thanks for sharing. I hope it will be helpful for too many people that are searching for this topic.

    ass grab

    ReplyDelete
  6. This is a great article. It gave me a lot of useful information. thank you very much.
    run2online.net

    ReplyDelete
  7. I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job! In my free time, I like play game: vex3game.com. What about you?

    ReplyDelete
  8. Your blog posts are more interesting and impressive. I think there are many people like and visit it regularly, including me.I actually appreciate your own position and I will be sure to come back here.
    brtaram

    ReplyDelete