Andrea, Absolutely agree, this would not work because of missing jars in classpath. I tried to find a way to give the eclipse launcher an external classpath but haven't found anything yet. Because of multiple classloaders there is no way to work with classpath settings. The RFC http://udig.refractions.net/confluence/display/UDIG/native+support+bundles+for+java+advanced+imaging would solve this because jai libs and natives are bundled and would not required jai in the JRE.
HACK : What about making symbolic links from udig_home/jre to the open-jdk-7 installation files/folders and let the jai/imageio jars locally in the lib/ext folder. To make sure udig uses the right JRE set the launcher option "-vm" to the udig_home/jre path. All other options would require a new release and of course a finished RFC ;) --> next release cycle of OSGeo Live is much more realistic BTW: Any news from Andrew about JAI/ImageIO Licensing and redistributing as a bundle (see RFC again) Cheers, Frank 2012/7/24 andrea antonello <[email protected]>: > [...] > >> I moved the jai binaries and jars into a custom folder under udig. >> Then I added this line on start of udig.sh, right under the gdal line: >> >> export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/usr/lib/udig/jai/ext/ > > That would work for the native libs, but then you do not have the jars > in the classpath. > Also I am not sure if that then picks imageio-ext. > > I am afraid I am not following this discussion tightly, but the above > can't work in my opinion. > > Frank, you worked on this, do you have opinions about this? > > Andrea > > > >> >> >> 2. use a pure java implementation of uDig without JAI >> >> >> I am not keen to make a special copy of uDig just for the live dvd. >> >> The open ticket is here: https://trac.osgeo.org/osgeo/ticket/922 >> >> >> Thoughts? >> >> >> You only mentioned JAI here; are you also looking at ImageIO and >> ImageIO-Ext? Other projects such as Geomajas are more likely to conflict on >> the copy of ImageIO-Ext and GDAL used. >> >> I did not touch either ImageIO or GDAL, since udig seemed to open every file >> I tested just with JAI moved around. >> >> Jody >> >> >> >> _______________________________________________ >> User-friendly Desktop Internet GIS (uDig) >> http://udig.refractions.net >> http://lists.refractions.net/mailman/listinfo/udig-devel >> >> >> >> -- >> Angelos Tzotsos >> Remote Sensing Laboratory >> National Technical University of Athens >> http://users.ntua.gr/tzotsos >> >> >> _______________________________________________ >> User-friendly Desktop Internet GIS (uDig) >> http://udig.refractions.net >> http://lists.refractions.net/mailman/listinfo/udig-devel >> > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
