I am newbie to Ubuntu and Java. I need to install Sun Java 1.5 (not 1.6) JDK in Ubuntu. I tried the followings

  1. "apt-get install" but it installs the latest version of Java not Java 1.5.

  2. I downloaded Java for Linux (not RPM) and change its mode using chmod +x jdk-1_5_0_22-linux-i586.bin. After that execute /.jdk-1_5_0_22-linux-i586.bin in the terminal. but I got "missing install.sys" error message.

Can any one help me on this?

Thank you, Regards, Robo

link|improve this question
Not sure if this'll help, but you might need the 32-bit compatibility libraries installed. Try sudo apt-get install ia32-libs – Shakedown Aug 29 '11 at 5:47
Is there a reason that you need 1.5? 1.6 will compile 1.5 compatible code for you. – Nighthawk Aug 30 '11 at 19:52
Hi all problem solved..Actually I was trying to install 32 bit Java on 64 bit Ubuntu. (Windows supports this architecture differences) now everything is solved.. Thanks a lot... – RoboAlex Sep 5 '11 at 14:38
feedback

migrated from stackoverflow.com Aug 29 '11 at 6:11

This question came from our site for professional and enthusiast programmers.

5 Answers

You could try install the Sun JDK 5 packages from Hardy, but there might be version dependencies to work around.

http://packages.ubuntu.com/hardy-updates/sun-java5-jdk

link|improve this answer
feedback

Ubuntu has Synaptic Package Manager, open it and search for the java package you need, follow the GUI. It will automatically install the package and its dependencies.

link|improve this answer
the OP is looking for a specific version of the JVM. Your advice may get him to install a newer version. – Traveling Tech Guy Aug 29 '11 at 7:30
feedback

Just install latest JDK and put compiler compatibility to 1.5.

link|improve this answer
feedback

apt-pinning should do what you need, if java 1.5 is still in the repository.

link|improve this answer
1.5 is not in the repositores (at least not for recent Ubuntu versions). – Joachim Sauer Aug 29 '11 at 6:03
Could you elenorate on how to use apt-pinning? – Simon Sheehan Aug 29 '11 at 6:14
feedback

Java 1.5 is deprecated upstream by Oracle. Java 1.6 is compatible and will work fine for everything. What is the specific need for Java 1.5?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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