Установка в Debian Oracle \ Sun Java за 2 шага :)

gorovoy@kadavercian:~$ sudo apt-get install sun-java5-jre sun-java5-jdk
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
uml-utilities bridge-utils libfuse2 libqt3-mt
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
gsfonts-x11 odbcinst1debian1 sun-java5-bin sun-java5-demo unixodbc
Suggested packages:
sun-java5-doc sun-java5-source sun-java5-plugin ia32-sun-java5-plugin
sun-java5-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
libmyodbc odbc-postgresql libct1
The following NEW packages will be installed:
gsfonts-x11 odbcinst1debian1 sun-java5-bin sun-java5-demo sun-java5-jdk
sun-java5-jre unixodbc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.5MB of archives.
After this operation, 117MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.ua.debian.org lenny/main odbcinst1debian1 2.2.11-16 [65.8kB]
Get:2 http://ftp.de.debian.org lenny/non-free sun-java5-jre 1.5.0-22-0lenny1 [7660kB]
Get:3 http://ftp.ua.debian.org lenny/main unixodbc 2.2.11-16 [286kB]
Get:4 http://ftp.ua.debian.org lenny/main gsfonts-x11 0.21 [10.4kB]
Get:5 http://ftp.de.debian.org lenny/non-free sun-java5-bin 1.5.0-22-0lenny1 [22.6MB]
Get:6 http://ftp.de.debian.org lenny/non-free sun-java5-demo 1.5.0-22-0lenny1 [9916kB]
Get:7 http://ftp.de.debian.org lenny/non-free sun-java5-jdk 1.5.0-22-0lenny1 [5033kB]
Fetched 45.5MB in 1min10s (648kB/s)
Preconfiguring packages …
Selecting previously deselected package sun-java5-jre.
(Reading database … 102081 files and directories currently installed.)
Unpacking sun-java5-jre (from …/sun-java5-jre_1.5.0-22-0lenny1_all.deb) …
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from …/odbcinst1debian1_2.2.11-16_i386.deb) …
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from …/unixodbc_2.2.11-16_i386.deb) …
Selecting previously deselected package sun-java5-bin.
Unpacking sun-java5-bin (from …/sun-java5-bin_1.5.0-22-0lenny1_i386.deb) …
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package sun-java5-demo.
Unpacking sun-java5-demo (from …/sun-java5-demo_1.5.0-22-0lenny1_i386.deb) …
Selecting previously deselected package sun-java5-jdk.
Unpacking sun-java5-jdk (from …/sun-java5-jdk_1.5.0-22-0lenny1_i386.deb) …
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package gsfonts-x11.
Unpacking gsfonts-x11 (from …/gsfonts-x11_0.21_all.deb) …
Processing triggers for man-db …
Processing triggers for menu …
Setting up odbcinst1debian1 (2.2.11-16) …
Setting up unixodbc (2.2.11-16) …
Setting up gsfonts-x11 (0.21) …
Setting up sun-java5-jre (1.5.0-22-0lenny1) …
Setting up sun-java5-jdk (1.5.0-22-0lenny1) …
Setting up sun-java5-demo (1.5.0-22-0lenny1) …
Setting up sun-java5-bin (1.5.0-22-0lenny1) …
Processing triggers for menu …

gorovoy@kadavercian:~$ sudo update-alternatives —config java

There are 3 alternatives which provide `java’.

Selection Alternative
1 /usr/bin/gij-4.3
*+ 2 /usr/lib/jvm/java-gcj/jre/bin/java
3 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

Press enter to keep the default[*], or type selection number: 3
Using ‘/usr/lib/jvm/java-1.5.0-sun/jre/bin/java’ to provide ‘java’.

Оставить комментарий

Можно использовать следующие HTML тэги:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>