Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to install Oracle Java JDK 6?

I want to install JDK 6u30 or later on ubuntu (but not java 7), how can I do so?

I'm on ubuntu 11.10

share|improve this question

marked as duplicate by Jorge Castro, fossfreedom, Jjed, jokerdino, htorque Jan 28 '12 at 8:00

This question was marked as an exact duplicate of an existing question.

As far as I remember I have installed it with the following command:

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

But here is the official way from Oracle how to do it: jdk6_30 install

share|improve this answer
this is for a server, so no GUI. – codecompleting Jan 27 '12 at 21:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.