Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

running duel JDKs on XP

Thread view: 
frank - 27 Jan 2006 21:56 GMT
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 - 27 Jan 2006 22:00 GMT
> 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.
[quoted text clipped - 7 lines]
> 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?

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.
Daniel Dyer - 27 Jan 2006 22:17 GMT
>> 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.
[quoted text clipped - 16 lines]
> java
> you want to run.  This works fine.

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.

Signature

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

Monique Y. Mudama - 27 Jan 2006 22:14 GMT
> 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.
[quoted text clipped - 8 lines]
> separate.  Is it just as easy as overlaying the system32 java.exe
> with the 1.4?

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

Signature

monique

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

Roedy Green - 28 Jan 2006 09:12 GMT
>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
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

andrewthommo@gmail.com - 02 Feb 2006 02:54 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.