I'm currently using JDK 6 on a Ubuntu 10.04 LTS server.
Since Oracle will not allow JDK 6 in Ubuntu repos now, it looks like OpenJDK 7 is the best alternative https://lists.ubuntu.com/archives/ubuntu-security-announce/2012-January/001554.html
I noticed OpenJDK 7 available on 11.10 as a package, but is there a backport package to lucid 10.04 LTS?
I found this one https://launchpad.net/~openjdk but it is one year out of date.
You can get Sun Java 6 from http://blog.flexion.org/2012/01/16/install-sun-java-6-jre-jdk-from-deb-packages/ but make sure to read the comments as there may be updates from the developer himself.
This may be the best option for a few reasons:
1. Ortang's suggestion of using the OpenJDK PPA has old versions of OpenJDK and is not recommended. I couldn't even get OpenJDK 7 to install on my Lucid box even though it said it was supported.
2. The Canonical Parters repository will be not be updated in the future due to the change in Oracle's policies so do not pull the Java from it. Simply changing your sources.list to Oneiric will not help for older releases.
Of course if you need Sun Java 7, try http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html as previously suggested. I have not tested it, but the WebUpd8 guys are pretty reliable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With