Debian安装JDK6

网上所说的:apt-get install sun-java6-jdk

执行完全不行,提示找不到这个包,估计是需要添加源吧!.

今天有个客户说让我帮忙安装Java6,没安过,没的说,直接百度,

结果千篇一律,全都是一样的安装文章,不知道有没有尝试过就安装,反正我是没安装成功.

还是Google好用:

Try this:

to install Java Development Kit(jdk)

or the Java runtime environment (jre):

Source: https://wiki.debian.org/Java/Sun

Package is missing, has been obsoleted, or is only available from another source. However the following packages replace it: sun-java6-demo. I guess I’ll have to add squeeze back to my sources. –

源地址说:这个包已经丢失,或者废弃,可以用sun-java6-demo代替

还有一篇:

Run sudo apt-cache search java6 to get a list of packages available from the default repositories. If you don’t see anything you like, you will have to either add an apt repository or install java manually.

源地址说:运行apt-cache search java6获取匹配列表,如果看到你需要的,执行安装就可以了.

要的就是这个,因为上面那个解决方案是用的sun-java-demo,虽然我并不知道是干嘛的,但是有个demo单词,还是不装的好.

搜索Java6相关的包:

安装:

完成:

 

“Debian安装JDK6”的2个回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注