[udig-devel] JAI not found

Jürgen Jacob zoid.berg at gmx.de
Thu May 29 01:16:28 PDT 2008


Many thanks for the quick answer!! It works! But I can't remember that I 
used this VM argument, maybe there exist several solutions.

Jürgen


Jesse Eichar schrieb:
> If you are running the application from within eclipse you need to add 
> the VM argument:
> 
>  -Dosgi.parentClassloader=ext
> 
> I also recommend adding:
> 
> -Xmx386M 
> 
> Jesse
> 
> On 29-May-08, at 8:46 AM, Jürgen Jacob wrote:
> 
>> Dear all,
>>
>> I've set up a little demo application integrating uDig and some own 
>> viewparts and it works but I still have a problem with JAI. Showing 
>> just shape files is fine but when I connect to a WMS server I get this 
>> exception on the console:
>>
>> Caused by: java.lang.NoClassDefFoundError: javax/media/jai/JAI
>> at 
>> net.refractions.udig.render.gridcoverage.basic.GridCoverageRendererUtils.paintGraphic(GridCoverageRendererUtils.java:97)
>> at 
>> net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:69)
>> ... 6 more
>>
>> And also the log file is filled with exceptions missing JAI classes. I 
>> copied all JAI-jars into jdk_home/jre/lib/ext and I did this for every 
>> installed jdk/jre.
>>
>> I tackled this before in another project but I can't remember :-(. Do 
>> I have to configure something inside my IDE? Currently the project 
>> consist of two plugins: One builds the product and adds some own 
>> stuff. The second integrates uDig and a perspective with the 
>> MapEditor. Do I have to add the jai-jars to one of these projects?
>>
>> Jürgen
>> _______________________________________________
>> 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



More information about the udig-devel mailing list