Home > English, GNU/Linux, ubuntu > HOWTO Install Sun’s JAVA on Ubuntu Lucid Lynx (10.04)

HOWTO Install Sun’s JAVA on Ubuntu Lucid Lynx (10.04)

After Ubuntu’s decision to default to OpenJDK for 10.04 (which is a good decision, IMHO), Sun’s (but is it still Sun, or Oracle?) JAVA somewhat “disappeared” from Ubuntu (multiverse).

That being said, some people may still need features only available in Sun’s JRE/JDK, which might not yet have been Freed.

Actually, Ubuntu is still shipping it, but in its “partner” section. To add that section to your Sources and install Sun’s JDK (as an example), just:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk

You might need to accept the license (press “tab”, “enter”, “tab” on “Yes” then “enter”).

You might also just want to install sun-java6-jre or sun-java6-plugin if you just want the (Mozilla) web browser plugin.

As a side note, remember to remove OpenJDK if you do not need it, or be prepared to encounter hard to diagnose problems sometime.

sudo apt-get remove openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib

Ubuntu 11.10: same operation. Just replace “lucid” por “oneiric”

About these ads
Categories: English, GNU/Linux, ubuntu Tags: , ,
  1. Allan
    May 24, 2010 at 9:42 pm

    If you don’t have add-apt-repository installed, you may need to grab the package which provides it, like this:
    sudo apt-get install python-software-properties

  2. Bill
    May 26, 2010 at 6:16 am

    Now this worked! I am addicted to Yahoo’s Literati (pseudo-Scrabble) game and Ubuntu’s openjdk java and its icedtea plugin do not work at all with it. But it works great with sun-java6-plugin after following the instructions above. I would urge developers to take a look at this game to see what is missing in their open source version. It had trouble re-sizing, and playing boards were blank and would repeatedly start up after I had X’d out of them.

  3. sarat
    September 25, 2010 at 9:50 pm

    this is the best information available so far for sun jdk installation. Thank you very much. This has been really helpful

    • Paul
      December 30, 2010 at 6:28 am

      second that… instructions don’t get better than that. I’ve been using linux for a couple of years now and I just hate the whole compile your code concept… and instructions like these make all the diff.

      TY

  4. January 3, 2011 at 5:05 am

    Thanks for posting this. There are way too many posts explaining how to do this via the GUI, who wants a GUI?

  5. bryan
    June 20, 2011 at 9:54 pm

    Great post. Just for others when you get to the license agreement ‘tab’ to the ok and select enter

  6. August 2, 2011 at 3:00 am

    Helpful and to the point.

  7. Leon
    January 17, 2012 at 6:35 pm

    The only “little” drawback is that sun-java6-sdk and sun-java6-jre packages (as well as any other java packages from Oracle) are not available for 11.10/’oneiric’ in specified repository.

  8. brian
    March 31, 2012 at 6:36 pm

    what do you do after installing jdk on ubuntu and it says package configurations

    • April 3, 2012 at 12:42 pm

      Could you be more precise?

  9. Tim
    May 25, 2012 at 11:56 am

    sudo apt-get install sun-java6-jdk

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package sun-java6-jdk has no installation candidate

    Any help, the package is missing.

  10. Dogan
    August 9, 2012 at 8:21 am

    sudo add-apt-repository “deb http://ppa.launchpad.net/ferramroberto/java/ubuntu lucid main”
    sudo apt-get update
    sudo apt-get install sun-java6-jdk

  1. April 30, 2010 at 3:17 am
  2. May 4, 2010 at 9:33 am
  3. January 23, 2011 at 9:30 am
  4. July 16, 2011 at 4:43 am
  5. November 4, 2011 at 5:53 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 63 other followers

%d bloggers like this: