Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
dev:ubuntu:sun_jdk [2013/05/08 08:07]
jamis7005
dev:ubuntu:sun_jdk [2013/05/21 21:56] (текущий)
jamis7005
Строка 1: Строка 1:
-====== Installation Oracle JDK ======+====== Installation Oracle JDK for linux ======
  
 1. Download the latest jdk from http://​www.oracle.com/​technetwork/​java/​javase/​downloads/​index.html 1. Download the latest jdk from http://​www.oracle.com/​technetwork/​java/​javase/​downloads/​index.html
Строка 13: Строка 13:
   ​   ​
 5. Delete links to old java versions: 5. Delete links to old java versions:
-  mv usr/lib/jvm usr/​lib/​jvm1+  mv /usr/​lib/​jvm ​/usr/​lib/​jvm1
   cd /usr/bin - delete all broken links   cd /usr/bin - delete all broken links
   cd /​etc/​alternatives - delete all broken links   cd /​etc/​alternatives - delete all broken links
-  mv usr/​lib/​jvm1 usr/lib/jvm+  mv /usr/​lib/​jvm1 ​/usr/lib/jvm
   ​   ​
 6. Add global link to java: 6. Add global link to java:
Строка 22: Строка 22:
   ln -s /​usr/​lib/​jvm/​java-current/​bin/​java /​usr/​bin/​java   ln -s /​usr/​lib/​jvm/​java-current/​bin/​java /​usr/​bin/​java
  
-  ​ 
- 
- 
- 
- 
- 
-===== Installing Sun JDK under Ubuntu 10.4 steps: ===== 
- 
-  - Open the Application Center. 
-  - Main menu / Application sources ​ 
-  - Page  - Other Software 
-  - Check - "​http://​archive.canonical.com/​ubuntu lucid patner"​ 
-  - Close 
-  - Go to the Application Center main window page Patners Canonical, use search field for "​jdk"​. 
- 
-===== Installing Java 7 on Ubuntu ===== 
- 
-  * Dowload an appropriate distro from http://​www.oracle.com/​technetwork/​java/​javase/​downloads/​index.html 
-  * Unpack it to /​usr/​lib/​jvm and rename to java-7-sun-1.7.0 (or whatever number it is) 
-  * Make symbolic link to the directory: 
- 
-  ln -s java-7-sun-1.7.0 java-7-sun 
- 
-  * Get the last number in the list: 
- 
-  sudo update-alternatives --config java 
- 
-  * Add new jdk to the list: 
- 
-  sudo update-alternatives --install /​usr/​bin/​java java /​usr/​lib/​jvm/​java-7-sun/​jre/​bin/​java 3 
- 
-  * Choose new jdk by typing it's number: 
- 
-  sudo update-alternatives --config java 
- 
-  * Check version: 
  
 +7. Check version:
 +  cd ~
   java -version   java -version
 +  javac -version
  
- 
- 
- 
-===== 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** 
dev/ubuntu/sun_jdk.1367986055.txt.gz · Последние изменения: 2013/05/08 08:07 — jamis7005
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0