Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

running duel JDKs on XP

31 views
Skip to first unread message

frank

unread,
Jan 27, 2006, 4:56:05 PM1/27/06
to
If this is not the correct forum for this question please let me know
which one as I looked and did not see a better one.

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?


Thanks,

Frank

Mike Schilling

unread,
Jan 27, 2006, 5:00:28 PM1/27/06
to

"frank" <fg...@optonline.net> wrote in message
news:VFwCf.55$gd...@fe12.lga...

Avoid using the system32 java.exe, since, as you point out, installers can
overwrite it. Install your JREs/JDKs into separate directories, and
whenever you run a java program, specifically point to the version of java
you want to run. This works fine.


Monique Y. Mudama

unread,
Jan 27, 2006, 5:14:51 PM1/27/06
to
On 2006-01-27, frank penned:

I do this all the time. Although the image of duelling JVMs is pretty
entertaining ...

--
monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Daniel Dyer

unread,
Jan 27, 2006, 5:17:27 PM1/27/06
to

A variation on your suggestion:

Set the JAVA_HOME environment variable to point to one of the JDKs, then
add %JAVA_HOME%\bin to the PATH environment variable (include it before
any reference to system32).

Then change JAVA_HOME as required. You can do this at a system, user or
shell level so that you can mix and match your JVMs as required.

To the OP, could you not just use 1.5 and use the -source and -target
options when compiling 1.4 apps?

Dan.

--
Daniel Dyer
http://www.dandyer.co.uk

Roedy Green

unread,
Jan 28, 2006, 4:12:02 AM1/28/06
to
On Fri, 27 Jan 2006 16:56:05 -0500, frank <fg...@optonline.net> wrote,
quoted or indirectly quoted someone who said :

>Is it just as
>easy as overlaying the system32 java.exe with the 1.4?
>

I enjoyed your pun 'dueling" instead of "dual". Sometimes I just give
up and uninstall all but one.

see http://mindprod.com/jgloss/flipping.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

andrew...@gmail.com

unread,
Feb 1, 2006, 9:54:29 PM2/1/06
to

frank wrote:

> 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.

This can be achieved by deploying the appliocations using Java
WebStart.
All your versioning problems will be over (though you may have to sign
or alter
the applications).

HTH

0 new messages