Hi Jody,
Thanks you were right.
My plug in definition set "Specify the minimum execution environments
required to run this plug-in" to 1.6 after removing this setting I do
not have any error.
Best regards
Thomas
Le 30/08/2012 16:31, Jody Garnett a écrit :
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
--
Thomas DOLLEY
Projet GUYASIM
UMR ECOFOG
Bâtiment D
TA C-105 / D Campus international de Baillarguet 34398 Montpellier Cedex 5
France
Tél : +33 4 67 59 38 85
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel