Distributing the JRE - JRE Private Installations
843798May 6 2004 — edited Sep 14 2005Hi,
I need to distribute the JRE with my app. I would like to install a copy of the JRE solely for use with my app. I want to do this to ensure the user has the version of the JRE I have tested with and that the JRE is not accidentally removed by the user.
I have tried using the latest version of the JRE but have run into a few problems when creating the installation for windows.
1) Multiple instances of the same JRE version are not supported. If the user already has a copy of the same JRE version installed elsewhere the installation fails. Or if my app is installed with the JRE and then at a later date the user wants to install the same JRE version for another app, they can't.
2) The windows JRE installation writes an entry into the add/remove programs list. This means the user could remove the JRE.
Ideally what I want is a method of installing a copy of the JRE solely for use with my app.
The only possible solution I can think of would be to copy the files from my existing JRE installation and distribute them without using the JRE installer. However, I am not sure if this would work without the registry entries or if it would be a legal way to distribute the JRE?????
I have looked into using Java webstart but I want my app to work on PC with no web access.
Thanks for any help
Jools