[icedtea-web] RFC: add an explanation for bootclasspath usage in makefile

Deepak Bhole dbhole at redhat.com
Wed Mar 30 13:09:30 PDT 2011


* Omair Majid <omajid at redhat.com> [2011-03-30 15:59]:
> Hi,
> 
> The attached patch adds a small note explaining the reasons why we
> are using bootclasspath when running icedtea-web.
> 
> Okay to commit?
> 
> Cheers,
> Omair

> diff -r d78bbff25267 Makefile.am
> --- a/Makefile.am	Tue Mar 15 10:22:27 2011 -0400
> +++ b/Makefile.am	Thu Mar 17 18:14:44 2011 -0400
> @@ -24,6 +24,13 @@
>  IT_CLASS_TARGET_VERSION=6
>  IT_JAVACFLAGS=$(IT_JAVAC_SETTINGS) -source $(IT_LANGUAGE_SOURCE_VERSION) -target $(IT_CLASS_TARGET_VERSION)
>  
> +#
> +# We need the jars in bootclasspath for a couple of reasons
> +#  - we use classes (in the sun.applet package) loaded by the bootclassloader
> +#    using another classloader to load classes from the same package causes an
> +#    IllegalAccessException
> +#  - we want full privileges
> +#
>  JRE='"$(SYSTEM_JDK_DIR)/jre"'
>  LAUNCHER_BOOTCLASSPATH="-Xbootclasspath/a:$(datadir)/$(PACKAGE_NAME)/netx.jar$(RHINO_RUNTIME)"
>  PLUGIN_BOOTCLASSPATH='"-Xbootclasspath/a:$(datadir)/$(PACKAGE_NAME)/netx.jar:$(datadir)/$(PACKAGE_NAME)/plugin.jar$(RHINO_RUNTIME)"'

OK for HEAD.

Deepak



More information about the distro-pkg-dev mailing list