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

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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

  • 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.