如何在清晰的10.04 LTS上安装openjdk-7-jdk? [英] How can I install openjdk-7-jdk on lucid 10.04 LTS?

查看:103
本文介绍了如何在清晰的10.04 LTS上安装openjdk-7-jdk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在Ubuntu 10.04 LTS服务器上使用JDK 6.

I'm currently using JDK 6 on a Ubuntu 10.04 LTS server.

由于Oracle现在不允许在Ubuntu repos中使用JDK 6,看起来OpenJDK 7是最佳替代方案 https://lists.ubuntu.com/ archives / ubuntu-security-announce / 2012-January / 001554.html

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

我注意到OpenJDK 7在11.10作为包提供,但是有一个backport包装清理10.04 LTS?

I noticed OpenJDK 7 available on 11.10 as a package, but is there a backport package to lucid 10.04 LTS?

我发现这个 https:/ /launchpad.net/~openjdk 但它已过期一年了。

I found this one https://launchpad.net/~openjdk but it is one year out of date.

推荐答案

你可以获得Sun Java 6来自 http: //blog.flexion.org/2012/01/16/install-sun-java-6-jre-jdk-from-deb-packages/ 但请务必阅读评论,因为可能会有更新d eveloper本人。


这可能是最好的选择,原因如下:

1。 Ortang建议使用OpenJDK PPA的旧版本OpenJDK并不推荐。我甚至无法将OpenJDK 7安装在我的Lucid盒子上,即使它表示支持它。

2。 Canonical Parters存储库将来不会更新由于Oracle的策略发生了变化,因此不要将Java从中拉出来。简单地将sources.list更改为Oneiric对旧版本没有帮助。


当然如果您需要Sun Java 7,请尝试 http://www.webupd8.org/2012/01/install-oracle-java-jdk-如前所述,7-in-ubuntu-via.html 。我没有测试过,但WebUpd8的人非常可靠。

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.

这篇关于如何在清晰的10.04 LTS上安装openjdk-7-jdk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆