I want to use jre-1_5_0_21 on my Fedora 14 box. Here's what's installed on my PC:
$ update-alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
Enter to keep the current selection[+], or type selection number: 1
failed to create /var/lib/alternatives/java.new: Permission denied
$
rpm -qa
$ rpm -qa | grep -i java
java-1.6.0-openjdk-plugin-1.6.0.0-52.1.9.7.fc14.i686
java-1.6.0-openjdk-1.6.0.0-52.1.9.7.fc14.i686
java-1.5.0-gcj-1.5.0.0-34.fc14.i686
java_cup-0.11a-4.fc13.noarch
tzdata-java-2011d-3.fc14.noarch
$
How can I have several versions of Java installed on my PC, and selecting it by: "update-alternatives --config java"?
Like when having several php versions on a webserver, I need to have several versions of Java, and it would be a practical thing to switch between the versions with "update-alternatives" then restart the webbrowser -> then the applet, that needs previous version of Java [...] would start simply [...]
sudo update-alternatives …
. Are you looking for a place to download other versions? – Gilles 'SO- stop being evil' Apr 29 '11 at 21:12