I have installed 11.04 in my machine. I have installed JDK6 from the repository. My problem is I need to install JDK5 in my machine I have used the following command but its not working.

~$ sudo apt-get install sun-java5-jdk

It gives the following messages:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package sun-java5-jdk

Please help

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

You can manually download it from here: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html and then install it.

link|improve this answer
1  
As a java developer I can confirm that a manual install is the best option for java. Just make sure that you set your paths correctly: export JAVA_HOME=/data/dev/java/java6 - export PATH=$JAVA_HOME/bin:$PATH. Pretty easy to switch between different java versions and JDKs that way. – jan groth Feb 6 at 12:14
feedback

Your Answer

 
or
required, but never shown

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