![](https://seccdn.libravatar.org/avatar/eb285856d0e2555b263c3583d0abf430.jpg?s=120&d=mm&r=g)
On Tuesday 16 August 2005 08:00, Michal Hlavac wrote:
Schwartz, Matthew (GE Healthcare) wrote:
I guess you will have to write a bash script to change your path if you need to run more than 1 jre
yes... I did it... but for example I don't understand meaning of all symbolic links in /etc/alternatives
I do it with a script in 9.3: #!/bin/sh # Switch to Java 1.5 by changing symlinks in /etc/alternatives echo 2 | update-alternatives --config java echo 2 | update-alternatives --config javac echo 2 | update-alternatives --config java_sdk_sun echo 2 | update-alternatives --config jre_sun or either "echo 1" for Java 1.4.
My suggestions are: 1. implement some switch JVMs script into distro or 2. write some documentation which symbolic links are necessary to change. Some "How To".
This used to be so simple in the days when it was just a simple link in /usr/lib. It would be nice if this were made easy for human beings, or even Java developers :) -- ============================================================= Glenn Holmer (Linux registered user #16682) ------------------------------------------------------------- "After the vintage season came the aftermath -- and Cenbe." ------------------------------------------------------------- "Vintage Season", Henry Kuttner/C.L. Moore, 1946 =============================================================