![](https://seccdn.libravatar.org/avatar/6ea19d22bea4d3e896f56ca24c8243b8.jpg?s=120&d=mm&r=g)
I guess you will have to write a bash script to change your path if you need to run more than 1 jre ~matthew -----Original Message----- From: Michal Hlavac [mailto:michal.hlavac@dactos.com] Sent: Tuesday, August 16, 2005 7:48 AM To: opensuse@opensuse.org Subject: Re: [opensuse] JAVA and OpenSuse Schwartz, Matthew (GE Healthcare) wrote:
I just pulled the RPM from sun, and it worked great :) Java 1.5_04
ok, this is possible... but there is no script or another way... how to switch between JVMs... miso --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
![](https://seccdn.libravatar.org/avatar/dc9fc676ec158e1877e77471982c88c5.jpg?s=120&d=mm&r=g)
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 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". thanks, miso
![](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 =============================================================
participants (3)
-
Glenn Holmer
-
Michal Hlavac
-
Schwartz, Matthew (GE Healthcare)