> > - Replacing the PATH entry to the java home dir of 1.5.x
> > - Setting JAVA_HOME=C:\dev\jdk1.5.0_11\bin
[quoted text clipped - 11 lines]
> --
> Lew
He could create a batch file that will switch between them. All he
would have to do is something like (this would be easier on Linux)
if %JAVA_HOME%="C:\dev\jdk1.5.0_11"
then
set JAVA_HOME=other jdk location
endif
PATH=%JAVA_HOME%\bin;%PATH%
Lew - 19 May 2007 15:07 GMT
> He could create a batch file that will switch between them. All he
> would have to do is something like (this would be easier on Linux)
[quoted text clipped - 3 lines]
> endif
> PATH=%JAVA_HOME%\bin;%PATH%
They would need to remove the old, now-invalid PATH element also.

Signature
Lew
> > - Replacing the PATH entry to the java home dir of 1.5.x
> > - Setting JAVA_HOME=C:\dev\jdk1.5.0_11\bin
>
> JAVA_HOME would normally be set to the parent directory of bin/.
Oops I had that already...
> set JAVA_HOME=C:\dev\jdk1.5.0_11
> PATH=%JAVA_HOME%\bin;%PATH%
[quoted text clipped - 3 lines]
>
> How exactly are you invoking java?
Java is invoked via Ant: "ant run" for example, don't know how Ant
tasks find the JRE...
Anyway I had C:\dev\jdk1.5.0_11\bin on my PATH= var at the second to
last position, now that I put that concrete entry before any
%SYSTEMROOT% (all Windows dirs/subdirs like system32) it works fine
now (only need to recreate a new shell window which is ok for me).
Karsten
dani.belz@googlemail.com - 22 May 2007 14:34 GMT
Hi Karten,
> Anyway I had C:\dev\jdk1.5.0_11\bin on my PATH= var at the second to
> last position, now that I put that concrete entry before any
> %SYSTEMROOT% (allWindowsdirs/subdirs like system32) it works fine
> now (only need to recreate a new shell window which is ok for me).
that's because in %SYSTEMROOT% you will also find java.exe,
javac.exe, ... I have absolutely no idea why! Took me some time to
figure this out because you would never think about that. Anyway, I
think it's save to remove them. I have JDK 1.4, 5 and 6 installed and
it works perfectly.
-Dani
dani.belz@googlemail.com - 22 May 2007 17:08 GMT
Hi Karten,
> Anyway I had C:\dev\jdk1.5.0_11\bin on my PATH= var at the second to
> last position, now that I put that concrete entry before any
> %SYSTEMROOT% (allWindowsdirs/subdirs like system32) it works fine
> now (only need to recreate a new shell window which is ok for me).
that's because in %SYSTEMROOT% you will also find java.exe,
javac.exe, ... I have absolutely no idea why! Took my some time to
figure this out because you would never think about that. Anyway, I
think it's save to remove them. I have JDK 1.4, 5 and 6 installed and
it works perfectly.
-Dani
ilya.khen@gmail.com - 23 May 2007 21:50 GMT
Hi,
I do have the same kind of problem with my browser.
JRE 6 and JRE 5 are installed on my machine, but whenever some applet
loads in browser, JRE 6 starts to react. It is good, but what if I
would like to use JRE 5 or JRE 6 by choose?
How to switch between JREs in respect to browser?
-Merlin