I'm trying to run this example form unfolding library. But I get this error.
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: org/json/JSONException
at GeoJSONApp.setup(GeoJSONApp.java:63)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
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)
... 4 more
I have several others examples running, so i believe the things are well installed. here the example code as it is.
Any idea?
btw great library!!! love it.
- import de.fhpotsdam.unfolding.mapdisplay.*;
- import de.fhpotsdam.unfolding.utils.*;
- import de.fhpotsdam.unfolding.marker.*;
- import de.fhpotsdam.unfolding.tiles.*;
- import de.fhpotsdam.unfolding.interactions.*;
- import de.fhpotsdam.unfolding.ui.*;
- import de.fhpotsdam.unfolding.*;
- import de.fhpotsdam.unfolding.core.*;
- import de.fhpotsdam.unfolding.data.*;
- import de.fhpotsdam.unfolding.geo.*;
- import de.fhpotsdam.unfolding.texture.*;
- import de.fhpotsdam.unfolding.events.*;
- import de.fhpotsdam.utils.*;
- import de.fhpotsdam.unfolding.providers.*;
- import processing.opengl.*;
- import codeanticode.glgraphics.*;
- UnfoldingMap map;
- void setup() {
- size(800, 600, GLConstants.GLGRAPHICS);
- smooth();
- map = new UnfoldingMap(this);
- MapUtils.createDefaultEventDispatcher(this, map);
- List<Feature> countries = GeoJSONReader.loadData(this, "countries-simple.geo.json");
- List<Marker> countryMarkers = MapUtils.createSimpleMarkers(countries);
- map.addMarkers(countryMarkers);
- }
- void draw() {
- map.draw();
- }
1