Switch between different JREs

N

Niki Estner

Hi there,

I've installed an older Sun JRE (1.1.6) for testing purposes.
Unfortunately my Eclipse studio won't launch any more... ("JVM terminated
Exit code = 2, C:\Windows\system32\javaw.exe ...")
I already tried reinstalling the new JVM (about 3 or 4 times), no effect...
How can I switch "back" to the current JVM (1.4.1)?
I always thought the Java Plug-In in Control Panel did this...

Thanks

Niki
 
M

Michael Borgwardt

Niki said:
I've installed an older Sun JRE (1.1.6) for testing purposes.
Unfortunately my Eclipse studio won't launch any more... ("JVM terminated
Exit code = 2, C:\Windows\system32\javaw.exe ...")
I already tried reinstalling the new JVM (about 3 or 4 times), no effect...
How can I switch "back" to the current JVM (1.4.1)?

Your problem seems to be that the old JRE installed its binaries into the windows
system folder and now Eclipse finds it first when looking for a JVM.
As a solution, remove the java binaries from C:\Windows\system32 and put them
in the 1.1.6 installation directory. When you want to test with the old JRE,
call the binaries with their full path.
I always thought the Java Plug-In in Control Panel did this...

No, that only controls which JVM is used to display applets in a web browser.
 
N

Niki Estner

I hate installers doing that...
My system32 folder is a bit crowded, do you know which binaries to replace?
java.exe/javaw.exe are of version 1.4.1 (file size).

Niki
 
M

Michael Borgwardt

Niki said:
I hate installers doing that...
My system32 folder is a bit crowded, do you know which binaries to replace?
java.exe/javaw.exe are of version 1.4.1 (file size).

Then that's not the problem.

OK, I looked around a bit, and it seems to be a registry problem: the
registry key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion
is probably set to 1.1.6; set it to 1.4 and it should work again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top