Running dual jvm's 1.4 1.5

F

frank

I asked this before but I think I did not ask the question completely.

I need to run 2 version of java JVM/JDKs , 1.4.x and 1.5 on the same XP
machine but have different programs running using the different JVMs/JDK
compiles. Is this do able and any know issues. I know on Linux/Unix
probably no biggy. But on Windows XP the installer takes control and
loads things into the system32 automatically for you with the new
version installed. Are their different dll's required for the different
versions of java and if so how do you keep it separate. Is it just as
easy as overlaying the system32 java.exe with the 1.4?

I NEED the system's default to stay at 1.4 java (don't want to screw
around with lots of other already setup and running program that are not
mine) but load a 1.5 that others can use. I overlaid the 1.5 java in
the system 32 with the 1.4 java and got an error when running of:

Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.5', but '1.4' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.


Looks like I screwed up the registry by doing it. Boy hate windows
this would be so easy on Linux!
 
D

Daniel Dyer

I asked this before but I think I did not ask the question completely.

I need to run 2 version of java JVM/JDKs , 1.4.x and 1.5 on the same XP
machine but have different programs running using the different JVMs/JDK
compiles. Is this do able and any know issues. I know on Linux/Unix
probably no biggy. But on Windows XP the installer takes control and
loads things into the system32 automatically for you with the new
version installed. Are their different dll's required for the different
versions of java and if so how do you keep it separate. Is it just as
easy as overlaying the system32 java.exe with the 1.4?

Was there any reason you couldn't use the approaches suggested last time
you asked?

http://groups.google.com/group/comp..._frm/thread/f73e57b6bf318291/4b6a9e8c7c4aaba1

Read Mike's suggestion, which I believe is the best approach. My reply to
his post suggests how you might go about doing it (it's the way I do it on
both Windows and Linux). If it's not clear, just ask. Roedy also posted
a link to a list of alternative approaches (Mike's suggestion is no. 3 on
the list)

Are you sure you can't just use the 1.5 JDK to compile and run your 1.4
applications?

Dan.
 
O

Oliver Wong

Daniel Dyer said:
I asked this before but I think I did not ask the question completely.

I need to run 2 version of java JVM/JDKs , 1.4.x and 1.5 on the same XP
machine but have different programs running using the different JVMs/JDK
compiles.
[snip]

Are you sure you can't just use the 1.5 JDK to compile and run your 1.4
applications?

I believe the 1.5 JVM can run 1.4 applications even without a recompile,
so it should be even easier than Dan is suggesting (which was already pretty
damn easy).

- Oliver
 
R

Roedy Green

I believe the 1.5 JVM can run 1.4 applications even without a recompile,
so it should be even easier than Dan is suggesting (which was already pretty
damn easy).

The 1.5 JVM will even run ancient 1.1 and 1.0 apps. Java is fiercely
upward compatible. The problem of course is the other way. You can't
run 1.5 code on and old 1.4 JVM.
 
I

Ian Mills

Roedy said:
The 1.5 JVM will even run ancient 1.1 and 1.0 apps. Java is fiercely
upward compatible. The problem of course is the other way. You can't
run 1.5 code on and old 1.4 JVM.
The only thing to be carefull of is where new keywords have been
introduced. A classic example is where people have used things like
Enumeration enum = ...

This is obviously a problem on 1.5 as enum is now a reserved word.
 

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
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top