PDA

View Full Version : installing java programming




ashokformac
Apr 16, 2007, 02:48 AM
how to bundle my java program with jre .? that is i want to run my java program if even jre is not already installed.

thanks in advance ....



Eraserhead
Apr 16, 2007, 05:46 AM
Mac's always have Java bundled, but for Windows you could bundle your Java Application with Java in a Windows installer, frankly Linux users (who also probably don't have Java installed, though now it's GPL licensed they probably get it bundled too.) should be able to cope.

ashokformac
Apr 17, 2007, 01:27 AM
I am using mac os only .. how to bundle in it including jre .. ?

robbieduncan
Apr 17, 2007, 03:50 AM
The basic answer is for OSX: don't. No one wants to download a gigantic file when a tiny one will do. You would need to "bundle" the correct Apple provided Java environment for the OS of the user (not all of them run on all versions of OSX). In addition you would need to check whether Apple and Sun allow redistribution.

As noted above OSX already has Java installed. The correct, supported way to update this install is via Software Update.

janey
Apr 17, 2007, 07:41 AM
...Linux users (who also probably don't have Java installed, though now it's GPL licensed they probably get it bundled too.) should be able to cope.
Errr...since when? Java installations are trivial in most distros of Linux and I can't think of any reason why anyone wouldn't have it installed (of course...it's not installed by default with some distros...don't get me started on the idiocy of what used to be Ubuntu's Java installation procedure, although again, installs are trivial).

Eraserhead
Apr 18, 2007, 05:39 AM
Errr...since when?

AFAIK it's often not bundled with the core OS, I know of Linux users without Java, though that user has space problems.

Really I meant bundled, not installed :o, then the whole sentence makes more sense.