Instale o Java 6 da Oracle para o Debian Lenny

0

Como o Java 6 não está disponível no Debian 5, decidi pegá-lo no Oracle. Eu fiz o download do Java 6 SDK no arquivo jdk-6u45-linux-i586-rpm.bin. Mas como instalá-lo?

Eu 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 a execução:

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

tem 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
    
por vico 10.06.2018 / 09:23

2 respostas

1

A melhor maneira de instalar o Java 6 JDK da Oracle é proceder da seguinte forma:

  • instale java-package :

    apt-get install java-package
    
  • faça o download de jdk-6u45-linux-i586.bin ( não o RPM) de o Oracle atinge ;

  • crie o pacote Debian correspondente:

    make-jpkg jdk-6u45-linux-i586.bin
    
  • instale o pacote resultante:

    sudo dpkg -i oracle-java6-jdk_6u45_i386.deb
    

Isso cuidará da configuração de alternativas, etc., para que você possa substituir totalmente qualquer JVM instalada. Se você quiser manter várias JVMs instaladas, use update-java-alternatives para selecionar a JVM padrão.

    
por 10.06.2018 / 23:05
1

Você terá que instalar o rpms:

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

deve ser o suficiente, se você não pretende fazer o desenvolvimento, deixo as demos javadb-demo-10.6.2-1.1.i386.rpm e os dois pacotes de doc out sun-javadb-docs-10.6.2-1.1.i386.rpm sun-javadb-javadoc-10.6.2-1.1.i386.rpm .

    
por 10.06.2018 / 09:39