So something has changed to prevent your class from seeing the copy of JAI that
is baked into the java runtime.
JAI is added as a java extension; so we need a special startup option (as
described in the custom app tutorial).
Also if your plugin has a defined java environment that will prevent it seeing
JAI (which is not part of the out of the box eclipse defined java environments).
have a look on the first tab of your MANIFEST.MF ?
--
Jody Garnett
On Thursday, 30 August 2012 at 9:43 PM, thomas dolley wrote:
> Hi ,
>
> I don't really know if it's the right list to send my e-mail.
>
> I'm trying to use ZonalStats to have some statistic but I have some problem
>
> Here is my code
>
> ----------------------------------------
> final Statistic[] statistis =new Statistic[3];
> statistis[0]=Statistic.MIN;
> statistis[1]=Statistic.MAX;
> statistis[2]=Statistic.SUM;
> param.parameter("stats").setValue(statistis);
>
> final GridCoverage2D coverageresult = (GridCoverage2D)
> op.doOperation(param, null);
>
> ZonalStats stats = (ZonalStats)
> coverageresult.getProperty(ZonalStatsDescriptor.ZONAL_STATS_PROPERTY);
> ----------------------------------------
>
> The last line give me the following error.
>
>
> Access restriction: The method getProperty(String) from the type
> PropertySourceImpl is not accessible due to restriction on required
> library C:\java\eclipse\jre\lib\ext\jai_core.jar
>
>
> Some people suggest to change compiler problem( like here
> http://blog.js-development.com/2008/11/type-x-is-not-accessible-due-to.html
> ).
> But it does not seem for me to be a good idea.
> Do you have any idea why I have this error ?
>
>
> Best regards
> Thomas
> _______________________________________________
> 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