wood burning stoves 2.0*
The moose likes Java in General and the fly likes Problem with JVM version overwritten in registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with JVM version overwritten in registry" Watch "Problem with JVM version overwritten in registry" New topic
Author

Problem with JVM version overwritten in registry

Kathy Doto
Greenhorn

Joined: Jul 07, 2003
Posts: 8
Our program uses jvm version 1.4. This is set up on the client machine when it is installed. The problem is that the user installed another product afterward which changed the version of jvm in the registry. Our product would not run without the registry setting being changed back. We wanted an automatic way of dealing with this to avoid this sort of problem. What is the best solution?
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
A solution (questionable whether or not it's the best solution), would be to bundle a "private" JVM with your application.
Products such as InstallAnywhere (http://www.zerog.com) will give you this option when creating an installer for your app, this way, modifications to the "global" JVM on the user's machine will not affect your application.
Kathy Doto
Greenhorn

Joined: Jul 07, 2003
Posts: 8
Thank you for your reply. Is this feature also available in InstallShield 5.5?
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
I don't know much about InstallShield.
Why don't you check their website, see if you can track down that info.
[ September 17, 2003: Message edited by: James Swan ]
Chris De Vries
Ranch Hand

Joined: Dec 05, 2002
Posts: 65
As I said in the other thread where you asked this questions, I think Java Web Start is a good choice for selecting and automatically downloading the appropriate java run time environment. It is also a cross-platform solution.
Kathy Doto
Greenhorn

Joined: Jul 07, 2003
Posts: 8
We are using a C++ application in which some menu items call Java applications. We are not doing any web development. I don't understand the use of Java Web Start in this context.
Chris De Vries
Ranch Hand

Joined: Dec 05, 2002
Posts: 65
With the mixture of C++ and java then it is probably not a good solution, however Web Start can be a good platform for distributing and installing desktop java applications be it from the web or from CD rom.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JVM version overwritten in registry