
Signature
Roedy Green Canadian Mind Products
http://mindprod.com
"Deer hunting would be fine sport, if only the deer had guns."
~ William S. Gilbert of Gilbert and Sullivan
Le 01/07/2009 10:40, Roedy Green a écrit :
> On Wed, 01 Jul 2009 09:40:27 +0200, Patrick
> <peuimporte@quelquepart.fr> wrote, quoted or indirectly quoted someone
[quoted text clipped - 7 lines]
> You might cook up a micro-installer, a tiny C program that just checks
> if Java already installed, and execs as needed.
I already intended to use an installer, but this doesn't solve the
problem: what to do if the same JRE version is already installed? Can we
force the installation anyway? (We want that our JRE stays inside our
product, not to rely on an external JRE that could be removed.)
Thanks,

Signature
Patrick
Daniel Hohenberger - 01 Jul 2009 10:12 GMT
Just include the JRE folder in your installer. If you want to use a
certain JRE only with your product, you don't need to do a full
installation including registry entries etc.
Patrick - 01 Jul 2009 10:50 GMT
Le 01/07/2009 11:12, Daniel Hohenberger a écrit :
> Just include the JRE folder in your installer. If you want to use a
> certain JRE only with your product, you don't need to do a full
> installation including registry entries etc.
It would indeed be much simpler, but are you sure it could not cause
other problems?
- I had the feeling that the JRE installer did some compilations and
optimisations on the target installation machine. Maybe it would not
work as well if copied on another machine?
- Maybe there are legal issues?

Signature
Patrick
Lew - 01 Jul 2009 13:18 GMT
> Le 01/07/2009 11:12, Daniel Hohenberger a écrit :
>> Just include the JRE folder in your installer. If you want to use a
[quoted text clipped - 3 lines]
> It would indeed be much simpler, but are you sure it could not cause
> other problems?
Fewer than doing system maintenance on someone else's machine.
> - I had the feeling that the JRE installer did some compilations and
> optimisations on the target installation machine. Maybe it would not
> work as well if copied on another machine?
Wrong.
> - Maybe there are legal issues?
Fewer than doing system maintenance on someone else's machine.
Read the license agreement on the JRE.

Signature
Lew
Lew - 01 Jul 2009 13:17 GMT
> Le 01/07/2009 10:40, Roedy Green a écrit :
>> On Wed, 01 Jul 2009 09:40:27 +0200, Patrick
[quoted text clipped - 12 lines]
> force the installation anyway? (We want that our JRE stays inside our
> product, not to rely on an external JRE that could be removed.)
So this is for a customer machine, one for whose maintenance you are not
responsible? Then installing a whole new JRE is irresponsible. It's their
machine, not yours.
Instead, extract (not install) a JRE into a subdirectory of your product's
installation directory and use relative paths to invoke it.

Signature
Lew
Roedy Green - 01 Jul 2009 17:30 GMT
On Wed, 01 Jul 2009 11:07:58 +0200, Patrick
<peuimporte@quelquepart.fr> wrote, quoted or indirectly quoted someone
who said :
>I already intended to use an installer, but this doesn't solve the
>problem: what to do if the same JRE version is already installed? Can we
>force the installation anyway? (We want that our JRE stays inside our
>product, not to rely on an external JRE that could be removed.)
Some products install a JVM and don't register it along with the other
JVMs. This means the other Java apps don't see it. It also means to
uninstall it, you uninstall your app. The user cannot uninstall it
separately. That is referred to as a "private" JVM.
The disadvantage is you get all manner of duplicate JVMs. The
advantage is the app sticks with the JVM that brung it.
It has been too long since I fiddled with commercial installers to
tell how to get the feature. I was underwhelmed by all of them, and
decided some day I would eventually have to write my own.

Signature
Roedy Green Canadian Mind Products
http://mindprod.com
"Deer hunting would be fine sport, if only the deer had guns."
~ William S. Gilbert of Gilbert and Sullivan
Roedy Green - 01 Jul 2009 19:50 GMT
On Wed, 01 Jul 2009 09:30:17 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :
> That is referred to as a "private" JVM.
see http://mindprod.com/jgloss/installer.html#PRIVATE

Signature
Roedy Green Canadian Mind Products
http://mindprod.com
"Deer hunting would be fine sport, if only the deer had guns."
~ William S. Gilbert of Gilbert and Sullivan