Это старая версия документа.
How to install Sun JDK under Ububntu 10.4
Installing Sun JDK under Ubuntu 10.4 steps:
- Get into the Application Center.
- Main menu / Application sources
- Page - Other Software
- Check - http://archive.canonical.com/ubuntu lucid patner
- Close
- Go to Application Center main window page Patners Canonical, use search field for «jdk».
How to make Sun JVM default Java Machine: A. We have to replace symlink /etc/alternatives/java.
- Delete current OpenJDK symlink
- Using Midnight Commander open directory /etc/alternatives/ from one side
- and pose cursor on file /usr/lib/jvm/java-6-sun/jre/bin/java
- Make symlink: Ctrl+x, s.
or: B. More elegant way:
sudo update-alternatives --config java
and select the option that has the path /usr/lib/jvm/java-6-sun/jre/bin/java