how to install Oracle Java on ubuntu 12.04

Asked by Inderjit Singh

How to install oracle java on ubuntu . I run the command on the terminal 'sudo apt-get install openjdk-7-jre icedtea-plugin'. The result is following-
Reading package lists... Done
Building dependency tree
Reading state information... Done
icedtea-plugin is already the newest version.
openjdk-7-jre is already the newest version.
The following packages were automatically installed and are no longer required:
  libsm-dev libice-dev libpthread-stubs0 x11proto-kb-dev xtrans-dev
  x11proto-input-dev libxt-dev libxau-dev xorg-sgml-doctools libx11-dev
  libx11-doc libxcb1-dev x11proto-core-dev libxdmcp-dev libpthread-stubs0-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Whether I got the java or otherwise. What should be the next.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Revision history for this message
Inderjit Singh (inderjit67) said :
#2

I will give you the output of given commands after some time.Presently I am unable to run the same due to screen flickering problem.The third command takes lot of time as it down loads java in between screen starts flickering .

Revision history for this message
Inderjit Singh (inderjit67) said :
#3

Actually that was not required. Flashpplugin solved my problem. Thanks.

Revision history for this message
Inderjit Singh (inderjit67) said :
#4

Thanks actionparsnip, that solved my question.