[icedtea-web] RFC: allow icedtea-web to run with just a jre

Omair Majid omajid at redhat.com
Thu Aug 18 10:22:13 PDT 2011


Hi,

The attached patch allows icedtea-web to run in the presence of just a 
jre, rather than the entire jdk, after icedtea-web is built.

The rationale for this change is that some distributions, like Fedora, 
only include the contents of openjdk's j2sdk-image/jre as part of the 
openjdk package. j2sdk-image/bin is provided with the openjdk 
development package in those distributions. It should not be necessary 
for users of icedtea-web to install the openjdk development packages.

During the build process IcedTea-Web embeds the path to the jre 
directory and the java binary in the launcher scripts 
(javaws/itweb-settings) and the plugin so (IcedTeaPlugin.so).

The patch adjusts things so that the java binary is looked up from 
inside the jre. The jre can now also be specified separately.

With the patch applied something like this should work:

./configure --with-jdk-home=/path/to/icedtea6/openjdk.build/j2sdk-image 
--with-jre-home=/path/to/icedtea6/openjdk.build/j2re-image

And even if the j2sdk-image is removed, IcedTea-Web should continue to work.

If --with-jre-home is not specified, it should default to 
$SYSTEM_JDK_DIR/jre, the old value.

I would like to add this to HEAD, and backport it to 1.1 as well.

Any thoughts or comments?

Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-web-work-with-jre-only-01.patch
Type: text/x-patch
Size: 3439 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110818/a1ea6a80/icedtea-web-work-with-jre-only-01.patch 


More information about the distro-pkg-dev mailing list