Hey guys,
I have a huge problem. There is an error and I am not able to solve it.
Any help?
23.04.2010 22:03:21 it.geosolutions.imageio.gdalframework.GDALUtilities
loadGDAL
WARNUNG: Native library load failed.java.lang.UnsatisfiedLinkError: no
gdaljni in java.library.path
23.04.2010 22:03:22 it.geosolutions.util.KakaduUtilities loadKakadu
WARNUNG: Native library load failed.java.lang.UnsatisfiedLinkError: no
kdu_jni in java.library.path
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
org/geotools/image/io/StreamImageReader$Spi
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown
Source)
at javax.imageio.spi.IIORegistry.<init>(Unknown Source)
at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)
at javax.imageio.ImageIO.<clinit>(Unknown Source)
at
org.geotools.gce.arcgrid.ArcGridReader.checkSource(ArcGridReader.java:304)
at org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:143)
at org.geotools.gce.arcgrid.ArcGridReader.<init>(ArcGridReader.java:113)
at
controller.ArcInfoGridReader.inputGridCoverage(ArcInfoGridReader.java:79)
at controller.GridConverter.crsGridConverter(GridConverter.java:27)
at view.GISJFrame$Listener_test.actionPerformed(GISJFrame.java:619)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
org.geotools.image.io.StreamImageReader$Spi
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 50 more
I am using the following snippet which causes trouble...
public GridCoverage2D inputGridCoverage() {
try {
agrURL = getAscFile().toURL();
ArcGridReader agr = new ArcGridReader(agrURL);
gc2D = (GridCoverage2D) agr.read(null);
} catch (Exception e) {
// handle exception
System.out.println("Error in Arc/Info ASCII Grid
handling!");
}
return gc2D;
}
I am guessing that there is a problem with the ArcGridReader. Am I right?
But whats the matter with it?
Linda
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Error-whats-the-matter-with-ArcGridReader-tp4952454p4952454.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users