Problem: java.lang.NoClassDefFoundError: Could not initialize class org.gvsig.crs.ogr.OGRSpatialReference

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem: java.lang.NoClassDefFoundError: Could not initialize class org.gvsig.crs.ogr.OGRSpatialReference

tomislav.obad
Hi,

My name is Tomislav Obad and I work in croatian GIS company named IGEA as a Java and GIS developer.

We've already contacted SAIG regarding our interest in Kosmo tool.

We've downloaded Kosmo source and followed instructions for Eclipse project import but we're having problems with running it.

Application starts, but after first action we get the following error:

10/04/2009 10:43:44 ERROR root:197 - Exception in thread "AWT-EventQueue-0"
10/04/2009 10:43:44 ERROR root:197 - java.lang.UnsatisfiedLinkError: no jgdal060 in java.library.path
10/04/2009 10:43:44 ERROR root:197 - at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
10/04/2009 10:43:44 ERROR root:197 - at java.lang.Runtime.loadLibrary0(Runtime.java:823)
10/04/2009 10:43:44 ERROR root:197 - at java.lang.System.loadLibrary(System.java:1030)
10/04/2009 10:43:44 ERROR root:197 - at org.gvsig.crs.ogr.JNIBase.<clinit>(JNIBase.java:79)
10/04/2009 10:43:44 ERROR root:197 - at org.gvsig.crs.Crs.<init>(Crs.java:209)
10/04/2009 10:43:44 ERROR root:197 - at org.gvsig.crs.repository.EpsgRepository.getCrs(EpsgRepository.java:140)
10/04/2009 10:43:44 ERROR root:197 - at org.gvsig.crs.CrsFactory.getCRS(CrsFactory.java:86)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.model.Task.getProjection(Task.java:277)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.updateTitle(TaskFrame.java:312)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.jbInit(TaskFrame.java:307)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.<init>(TaskFrame.java:159)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.<init>(TaskFrame.java:114)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.WorkbenchFrame.addTaskFrame(WorkbenchFrame.java:869)
10/04/2009 10:43:44 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.WorkbenchFrame.addTaskFrame(WorkbenchFrame.java:846)
10/04/2009 10:43:44 ERROR root:197 - at org.saig.core.model.task.widgets.TaskManagerPanel$3.actionPerformed(TaskManagerPanel.java:174)
10/04/2009 10:43:44 ERROR root:197 - at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
10/04/2009 10:43:44 ERROR root:197 - at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
10/04/2009 10:43:44 ERROR root:197 - at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
10/04/2009 10:43:44 ERROR root:197 - at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
10/04/2009 10:43:44 ERROR root:197 - at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Component.processMouseEvent(Component.java:6134)
10/04/2009 10:43:44 ERROR root:197 - at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Component.processEvent(Component.java:5899)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Container.processEvent(Container.java:2023)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Component.dispatchEventImpl(Component.java:4501)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Container.dispatchEventImpl(Container.java:2081)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Component.dispatchEvent(Component.java:4331)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Container.dispatchEventImpl(Container.java:2067)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Window.dispatchEventImpl(Window.java:2458)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.Component.dispatchEvent(Component.java:4331)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
10/04/2009 10:43:44 ERROR root:197 - at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
10/04/2009 10:44:06 ERROR root:197 - java.lang.NoClassDefFoundError: Could not initialize class org.gvsig.crs.ogr.OGRSpatialReference
10/04/2009 10:44:06 ERROR root:197 - at org.gvsig.crs.Crs.<init>(Crs.java:209)
10/04/2009 10:44:06 ERROR root:197 - at org.gvsig.crs.repository.EpsgRepository.getCrs(EpsgRepository.java:140)
10/04/2009 10:44:06 ERROR root:197 - at org.gvsig.crs.CrsFactory.getCRS(CrsFactory.java:86)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.model.Task.getProjection(Task.java:277)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.updateTitle(TaskFrame.java:312)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.jbInit(TaskFrame.java:307)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.<init>(TaskFrame.java:159)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.TaskFrame.<init>(TaskFrame.java:114)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.WorkbenchFrame.addTaskFrame(WorkbenchFrame.java:869)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.WorkbenchFrame.addTaskFrame(WorkbenchFrame.java:846)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.ui.plugin.NewTaskPlugIn.execute(NewTaskPlugIn.java:90)
10/04/2009 10:44:06 ERROR root:197 - at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:118)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Component.processMouseEvent(Component.java:6134)
10/04/2009 10:44:07 ERROR root:197 - at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Component.processEvent(Component.java:5899)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Container.processEvent(Container.java:2023)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Component.dispatchEventImpl(Component.java:4501)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Container.dispatchEventImpl(Container.java:2081)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Component.dispatchEvent(Component.java:4331)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Container.dispatchEventImpl(Container.java:2067)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Window.dispatchEventImpl(Window.java:2458)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.Component.dispatchEvent(Component.java:4331)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
10/04/2009 10:44:07 ERROR root:197 - at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Could you help us with that?

Thanks

Tomislav
IGEA