Como o Java 6 não está disponível no Debian 5, decidi tirá-lo da Oracle. Eu baixei o Java 6 SDK no arquivo jdk-6u45-linux-i586-rpm.bin. Mas como instalá-lo?
Executei jdk-6u45-linux-i586-rpm.bin
e obtive vários arquivos:
jdk-6u45-linux-i586.rpm
sun-javadb-core-10.6.2-1.1.i386.rpm
sun-javadb-demo-10.6.2-1.1.i386.rpm
sun-javadb-docs-10.6.2-1.1.i386.rpm
sun-javadb-javadoc-10.6.2-1.1.i386.rpm
sun-javadb-client-10.6.2-1.1.i386.rpm
O que devo fazer a seguir?
UPD
Após executar:
rpm -ivh jdk-6u45-linux-i586.rpm sun-javadb-core-10.6.2-1.1.i386.rpm sun-javadb-demo-10.6.2-1.1.i386.rpm sun-javadb-docs-10.6.2-1.1.i386.rpm sun-javadb-javadoc-10.6.2-1.1.i386.rpm sun-javadb-client-10.6.2-1.1.i386.rpm
obteve saída:
/bin/basename is needed by jdk-1.6.0_45-fcs.i586
/bin/cat is needed by jdk-1.6.0_45-fcs.i586
/bin/cp is needed by jdk-1.6.0_45-fcs.i586
/bin/gawk is needed by jdk-1.6.0_45-fcs.i586
/bin/grep is needed by jdk-1.6.0_45-fcs.i586
/bin/ln is needed by jdk-1.6.0_45-fcs.i586
/bin/ls is needed by jdk-1.6.0_45-fcs.i586
/bin/mkdir is needed by jdk-1.6.0_45-fcs.i586
/bin/mv is needed by jdk-1.6.0_45-fcs.i586
/bin/pwd is needed by jdk-1.6.0_45-fcs.i586
/bin/rm is needed by jdk-1.6.0_45-fcs.i586
/bin/sed is needed by jdk-1.6.0_45-fcs.i586
/bin/sort is needed by jdk-1.6.0_45-fcs.i586
/bin/touch is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/cut is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/dirname is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/expr is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/find is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/tail is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/tr is needed by jdk-1.6.0_45-fcs.i586
/usr/bin/wc is needed by jdk-1.6.0_45-fcs.i586
/bin/sh is needed by jdk-1.6.0_45-fcs.i586
sun-javadb-common is needed by sun-javadb-core-10.6.2-1.1.i386
/bin/sh is needed by sun-javadb-core-10.6.2-1.1.i386
sun-javadb-common is needed by sun-javadb-demo-10.6.2-1.1.i386
sun-javadb-common is needed by sun-javadb-docs-10.6.2-1.1.i386
sun-javadb-common is needed by sun-javadb-javadoc-10.6.2-1.1.i386
sun-javadb-common is needed by sun-javadb-client-10.6.2-1.1.i386
Você terá que instalar os rpms:
deve ser suficiente, se você não pretende fazer desenvolvimento, eu deixaria as demos
javadb-demo-10.6.2-1.1.i386.rpm
e os dois pacotes doc de forasun-javadb-docs-10.6.2-1.1.i386.rpm sun-javadb-javadoc-10.6.2-1.1.i386.rpm
.A melhor maneira de instalar o Java 6 JDK da Oracle é proceder da seguinte forma:
instalar
java-package
:baixar
jdk-6u45-linux-i586.bin
( não o RPM) dos arquivos da Oracle ;crie o pacote Debian correspondente:
instale o pacote resultante:
Isso cuidará da configuração de alternativas etc. para que você possa substituir totalmente qualquer JVM instalada. Se desejar manter várias JVMs instaladas, use
update-java-alternatives
para selecionar a JVM padrão.