ubuntu10.04下eclipse运行速度慢问题解决

来源:互联网 发布:算法导论第三版pdf答案 编辑:程序博客网 时间:2024/04/30 19:48

在ubuntu下运行eclipse速度十分缓慢,感觉像是在用一台老爷机写程序,研究了一下Java环境才发现我装的是open jdk而不是sun jdk.

在ubuntu的官方找到了以下说明,链接

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"

晕倒,只好手动安装sun的jdk了

在命令行输入

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

搞定

原创粉丝点击