Oracle에서 Debian Lenny로 Java 6 설치

Oracle에서 Debian Lenny로 Java 6 설치

Debian 5에서는 Java 6을 사용할 수 없기 때문에 Oracle에서 얻기로 결정했습니다. jdk-6u45-linux-i586-rpm.bin 파일에 Java 6 SDK를 다운로드했습니다. 그런데 어떻게 설치하나요?

나는 실행 jdk-6u45-linux-i586-rpm.bin하고 여러 파일을 얻었습니다.

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

다음에 무엇을 해야 합니까?

UPD

실행 후:

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

출력을 얻으십시오 :

/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

답변1

Oracle의 Java 6 JDK를 설치하는 가장 좋은 방법은 다음 단계를 따르는 것입니다.

  • 설치하다 java-package:

    apt-get install java-package
    
  • 다운로드 jdk-6u45-linux-i586.bin(아니요속도)에서오라클의 업적;

  • 해당 Debian 패키지를 만듭니다.

    make-jpkg jdk-6u45-linux-i586.bin
    
  • 생성된 패키지를 설치합니다.

    sudo dpkg -i oracle-java6-jdk_6u45_i386.deb
    

그러면 설치된 JVM을 완전히 교체할 수 있도록 대안 설정 등이 처리됩니다. 여러 JVM을 설치된 상태로 유지하려면 update-java-alternatives기본 JVM 선택을 사용하세요.

답변2

rpm을 설치해야 합니다.

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

충분할 것입니다. 개발을 계획하지 않는다면 데모 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.

관련 정보