K
Karsten Wutzke
Hello all!
I've been searching for quite some time, but I can't seem to find a
solution...
How do I best switch Java runtimes on a machine where I have JDK 5.0
an 6.0 installed?
My app is made for 5.0 only, but the currently used JRE is always 6.0.
The java.exe in the windows system dir seems to point to the latest
version at all times.
I launch my app from the shell via "ant run" so it is a must that Ant
has to find the "current" JVM. Using absolute paths is not an option
since I use Ant (and will stick to it no matter what).
How do I best switch between JRE's?
Is it possible to switch JRE's without creating a new shell window?
Things that didn't work so far:
- Setting the default JRE via the Java control panel (I haven't found
that anywhere in the dialog...)
- Replacing the PATH entry to the java home dir of 1.5.x
- Setting JAVA_HOME=C:\dev\jdk1.5.0_11\bin
- Adding the jvmversion="1.5" param to Ant's <java> task
I don't want to do any brute-force stuff here.
Maybe someone knows an article that I haven't found so far. Otherwise
I'm all ears...
Karsten
I've been searching for quite some time, but I can't seem to find a
solution...
How do I best switch Java runtimes on a machine where I have JDK 5.0
an 6.0 installed?
My app is made for 5.0 only, but the currently used JRE is always 6.0.
The java.exe in the windows system dir seems to point to the latest
version at all times.
I launch my app from the shell via "ant run" so it is a must that Ant
has to find the "current" JVM. Using absolute paths is not an option
since I use Ant (and will stick to it no matter what).
How do I best switch between JRE's?
Is it possible to switch JRE's without creating a new shell window?
Things that didn't work so far:
- Setting the default JRE via the Java control panel (I haven't found
that anywhere in the dialog...)
- Replacing the PATH entry to the java home dir of 1.5.x
- Setting JAVA_HOME=C:\dev\jdk1.5.0_11\bin
- Adding the jvmversion="1.5" param to Ant's <java> task
I don't want to do any brute-force stuff here.
Maybe someone knows an article that I haven't found so far. Otherwise
I'm all ears...
Karsten