Ubuntu < 10.10
To install the Sun Java Virtual Machine (JVM) e.g. on Ubuntu Linux 9.10 (karmic):
Open /etc/apt/sources.list, put
deb http://archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic multiverse
Ubuntu 10.10 (maverick)
This possibly works for versions below 10.10. If it does, please update this note.
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
Ubuntu 11.04 (Natty Narwhal)
- In your Applications menu, open the Ubuntu Software Center.
- Edit -> Software Sources -> Other Software
- Check Canonical Partners and Canonical Partners Source Code
Installing
You probably want to get rid of OpenJDK (which is installed by default and leads to bad RubyMine performance):
sudo apt-get remove openjdk*
Now you can install the official Java JRE:
sudo apt-get update
sudo apt-get install sun-java6-jre
You can now check your default JVM with java -version. It should be Sun’s.
本文档详细介绍了如何在不同版本的Ubuntu系统中安装Sun Java虚拟机(JVM)。包括了从Ubuntu 9.10到11.04版本的具体步骤,并提供了移除默认安装的OpenJDK的方法,以提高RubyMine等应用的性能。
630

被折叠的 条评论
为什么被折叠?



