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


  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?

  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

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

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

    gclub casino
    goldenslot casino

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

    ass grab

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

  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: What about you?

  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.

  9. Thanks for the information you shared. Please share useful information with your friends regularly

  10. Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject.

  11. It’s really a great and useful piece of information. I’m glad that you just shared this helpful information with us.
    Please stay us informed like this. Thanks for sharing. ??

    Agen Bola
    Agen Bola Terpercaya
    Poker Online Indonesia
    Poker Online Uang Asli
    Poker Uang Asli
    Agen Poker Online
    Poker Online

  12. It is really a great work and the way in which u r sharing the knowledge is excellent. Thanks for helping me to understand basic concepts. Thanks for your informative article. Java Training in Chennai | Pega Training in Chennai