如何在 Debian 上安装 Sun Java?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18247933/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install Sun Java on Debian?
提问by Boris Stitnicky
On current Debian testing, I am unable to install sun-java6 packages. They are not in the repository. Legacy software depends on them, I must install them right now.
在当前的 Debian 测试中,我无法安装 sun-java6 软件包。它们不在存储库中。遗留软件依赖于它们,我必须立即安装它们。
回答by Juned Ahsan
Try this:
尝试这个:
to install Java Development Kit(jdk)
安装 Java 开发工具包 (jdk)
# apt-get install sun-java6-jdk
or the Java runtime environment (jre):
或 Java 运行时环境 (jre):
# apt-get install sun-java6-jre
Source: https://wiki.debian.org/Java/Sun
回答by Ahsan Shah
Check the following wiki regarding Java installation on Debain:
查看以下有关在 Debain 上安装 Java 的 wiki:
回答by Stephen C
Here's another resource (for Ubuntu) that includes instructions for manually installing Oracle (aka Sun) Java 6 on Ubuntu. I think that the instructions should work for Debian too.
这是另一个资源(适用于 Ubuntu),其中包含在 Ubuntu 上手动安装 Oracle(又名 Sun)Java 6 的说明。我认为这些说明也适用于 Debian。
The page also covers other versions of Java.
该页面还涵盖了其他版本的 Java。