`
dazhilao
  • 浏览: 240523 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

【转】Ubunt安装JDK

阅读更多
众所周知,10.04当中sun-jdk被弄走了。从某种程度上说我还是不大适应openjdk,于是在官方的release notes 里面看到这样一段:

Sun Java moved to the Partner repository

For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.

If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:

add-apt-repository "deb http://archive.canonical.com/ lucid partner"

---------------
于是:
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

不过速度就相当可怕了,十几K。

话说openjdk除了那个字体难看一点(10.04里面是否如此我不知道),基本也没什么问题,用sun的jdk字体就可以了。

编辑环境变量:$sudo gedit /etc/environment
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics