As ubuntu droped the oracle jdk support from 12.04 fully, you may face some performance and stability problem with the open jdk. Here is the simple 3 line tricks to get the oracle/sun jdk in 12.04
sudo add-apt-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
You may see few key warning. Just ignore those, it’s the PPA’s small issue. but the jdk will work great.
Please let us know if you face any problem
You may also like to read:
Views :12505
I get this message..
The following packages have unmet dependencies:
sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
sun-java6-plugin:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I also get the message :
The following packages have unmet dependencies:
sun-java6-jdk:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
sun-java6-plugin:i386 : Depends: sun-java6-bin:i386 (>= 6.30-2~precise1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
These errors are being generated because there is not a 64bit copy of the sun-java6-jdk availible from the repository.
As an alternative – you can install the version of java from the Oneiric repository and then install the most recent Java binaries from Sun.
thanks was helpful
sara
I get this message …
You are about to add the following PPA to your system:
tag:launchpad.net:2008:redacted
More info: https://launchpad.net/~flexiondotorg/+archive/java
Press [ENTER] to continue or ctrl-c to cancel adding it
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 551, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 95, in run
self.add_ppa_signing_key(self.ppa_path)
File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 107, in add_ppa_signing_key
print “Error reading %s: %s” % (lp_url, e[1])
NameError: global name ‘lp_url’ is not defined
i got this message:
GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2EA8F35793D8809A
it’s working!!.. bt don’t hw does that relate to ppa issue. cn u plz explain?