Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Trying to make JAI easier installation easier

Here is a bug for us to track:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=74499

aka: RCP eclipse.exe does not find jre/ext

I spent a fair bit of time confirming that this is not duplicated by existing bug reports, it is unlikely they have run across this limitation before as they are only now starting to have RCP applications
that use Java capabilities in earnest.

We are going to look into providing a patch/hack for eclipse.c that
finds the JRE/lib/ext/* jars and adds them to the bootclasspath VM argument.

The idea of using http://www.holongate.org/ does not pan out due to the following:
jai-core

This package is just the Java Advanced Imaging toolkit packaged as an Eclipse plugin. It can be used on its own and does not contain any dependencies with any other plugin: it is only used by the image sample JAI support.

    * javax.media.jai: The Java Advanced Imaging toolkit.

Note 1: This plugin is delivered under the terms of the SUN EULA specific to JAI and its distribution may be discontinued if requested by Sun. Its only purpose is to help you installing a working Eclipse configuration with JAI because the standard extension mechanism of the JRE/JDK (used by the standard Sun installation procedure) does not work inside the workbench. We hope that this problem will be resolved as soon as possible so that this plugin will be replaced by a standard JAI install procedure.

Note 2: This plugin also contains the native libraries for the Windows and Linux/x86 platforms, but the JAI library will itself fallback to a "pure Java" mode if they are not usable on your target platform (this is why they are not delivered as fragments).

Translation:
- it allows Eclipse plugins to depend on (and thus use) JAI
- it does not play as nice with thirdparty libraries like geotools.
(Instead we are supposed to surround all library calls with code that switches the current thread over to a classloader that knows about JAI.)
- Holongate may need to remove this plugin at any time (at Suns request)

What we are shooting for is a way for udig.exe to respect extentions such as JAI installed in the usual manner. Using a one-click installer
such as Install anywhere to deliver a JRE perpackaged with JAI would
complete the picture.

Jody



Back to the top