0

Since Java 6 is not available in Debian 5 I decided to take it from Oracle. I have downloaded Java 6 SDK in file jdk-6u45-linux-i586-rpm.bin. But how to install it?

I executed jdk-6u45-linux-i586-rpm.bin and got several files:

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

What I should do next?

UPD

After executing:

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

got output:

/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
    Java 6 from Oracle, I answered in the other answer you have the OpenJKD in Debian. – Rui F Ribeiro Jun 10 '18 at 7:36
  • Why using debian 5 ? Buster will be out in few weeks – Arpit Agarwal Jun 10 '18 at 8:07
  • It is for special bedded device. Nobody will pay me for adopting newer Linux distribution – vico Jun 10 '18 at 8:16
  • 1
    @Arpit in a few weeks? – Stephen Kitt Jun 10 '18 at 8:53
  • It's in testing phase so i think it will be out soon – Arpit Agarwal Jun 10 '18 at 8:55
1

The best way to install Oracle’s Java 6 JDK is to proceed as follows:

  • install java-package:

    apt-get install java-package
    
  • download jdk-6u45-linux-i586.bin (not the RPM) from the Oracle achives;

  • create the corresponding Debian package:

    make-jpkg jdk-6u45-linux-i586.bin
    
  • install the resulting package:

    sudo dpkg -i oracle-java6-jdk_6u45_i386.deb
    

This will take care of setting up alternatives etc. so that you can fully replace any installed JVM. If you want to keep multiple JVMs installed, use update-java-alternatives to select the default JVM.

1

You will have to install the 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

should be enough, if you do not intend to do development, I would leave the demos javadb-demo-10.6.2-1.1.i386.rpm and the two doc packages out sun-javadb-docs-10.6.2-1.1.i386.rpm sun-javadb-javadoc-10.6.2-1.1.i386.rpm.

  • After proceeding he command got many dependencies problems. Does it means it is mission impossible to install Java 6 in Lenny? More details in question body UPD. – vico Jun 10 '18 at 8:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.