Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 can I install Sun/Oracle’s proprietary Java 6/7 JRE or JDK?


I'm new in ubuntu server. As I understand it, Oracle retired the Operating System Distributor's License for Java, meaning that Canonical could no longer include the JDK or JRE in their APT repositories. This means no more "sudo apt-get install sun-java-whatever".

I just following this tutorial and other question but i still can't installing the jdk. How do I install oracle jdk 7 on ubuntu server 12.04? Thanks in advance

share|improve this question

marked as duplicate by Ringtail, devav2, fossfreedom Dec 4 '12 at 8:24

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.

up vote 1 down vote accepted

The most popular way NOW is: NOTE: build .deb from OTN binaries and set up a local repository, install from there.

You can run update-alternatives --config java and see installed JDK/JRE and configure.

I personally prefer to use the tar.gz packages and write scripts to automate the install/config/update;-)

share|improve this answer
It's Works. Thanks Terry :) – Muhammad Sholihin Dec 4 '12 at 7:09

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