Content-Transfer-Encoding: |
8bit |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Fri, 25 Jan 2013 15:51:10 +0000 |
MIME-Version: |
1.0 |
Content-Type: |
text/plain; charset="us-ascii" |
Reply-To: |
|
Parts/Attachments: |
|
|
Hi,
Sorry if this has been answered, I quick archive search didn't reveal anything.
I'm trying to get geomason working on a mac and the example I'm particularly interested in is CampusWorld.
It works fine in non-gui mode but in GUI mode I get the following error (full trace below):
Exception in thread "main" java.lang.NoClassDefFoundError: it/geosolutions/imageio/gdalframework/GDALImageWriterSpi
Possibly a problem with GDAL? I have installed the GDAL (and possibly OGR) libraries from a mac repository of GIS stuff: http://www.kyngchaos.com/software:frameworks but don't know about associated java bindings.
Any ideas? I'm not really clear on what needs to be installed and how to go about installing it.
Thanks,
Nick
nickmacbook:geomason-1.5 nick$ java -cp $CLASSPATH:. sim.app.geo.campusworld.CampusWorldWithUI
reading buildings layer
reading roads layer
reading walkways layer
Done reading data
Exception in thread "main" java.lang.NoClassDefFoundError: it/geosolutions/imageio/gdalframework/GDALImageWriterSpi
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.misc.Service$LazyIterator.next(Service.java:272)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:190)
at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:121)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:142)
at apple.awt.CToolkit.registerDefaultServices(CToolkit.java:1336)
at apple.awt.CToolkit.<init>(CToolkit.java:144)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.awt.Toolkit$2.run(Toolkit.java:859)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at java.awt.KeyboardFocusManager.initPeer(KeyboardFocusManager.java:417)
at java.awt.KeyboardFocusManager.<init>(KeyboardFocusManager.java:413)
at java.awt.DefaultKeyboardFocusManager.<init>(DefaultKeyboardFocusManager.java:47)
at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:183)
at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:174)
at com.apple.laf.AquaLookAndFeel.initialize(AquaLookAndFeel.java:145)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:519)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:564)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1329)
at javax.swing.UIManager.initialize(UIManager.java:1422)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1410)
at javax.swing.UIManager.getDefaults(UIManager.java:645)
at javax.swing.UIManager.put(UIManager.java:974)
at sim.display.Console.<clinit>(Console.java:121)
at sim.app.geo.campusworld.CampusWorldWithUI.main(CampusWorldWithUI.java:114)
Caused by: java.lang.ClassNotFoundException: it.geosolutions.imageio.gdalframework.GDALImageWriterSpi
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 44 more
--
Nick Malleson
School of Geography, University of Leeds
[log in to unmask]
0113 34 35248
--
Nick Malleson
School of Geography, University of Leeds
[log in to unmask]
0113 34 35248
|
|
|