java.lang.NoClassDefFoundError

Hello, I guess I use the latest code and libs, but I get these errors : Time started: Tue Mar 05 07:20:48 CET 2013 java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/longs/Long2ObjectOpenHashMap at uk.me.parabola.mkgmap.reader.osm.OSMId2ObjectMap.<init>(OSMId2ObjectMap.java:38) at uk.me.parabola.mkgmap.reader.osm.ElementSaver.<init>(ElementSaver.java:49) at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.createElementSaver(OsmMapDataSource.java:149) at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.setupHandler(OsmMapDataSource.java:131) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:66) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:144) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:201) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:198) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ClassNotFoundException: it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 14 more Exiting - if you want to carry on regardless, use the --keep-going option The command line: java -Xmx896m -jar $FILEDIR/splitter.jar --cache=$cache --output=$output --geonames-file=$geonames_file --max-areas="$max_areas" --max-nodes="$max_nodes" --description="$description_splitter" --mapid=$mapid $CARTESDIR/$geofabrik_map . Parameter $cache = /usr/local/misc/cartes . Parameter $output = xml . Parameter $geonames_file = cities1000.zip . Parameter $max_areas = 30 . Parameter $max_nodes = 800000 . Parameter $description_splitter = Carte Geographique OSM . Parameter $mapid = 66660001 . Parameter $CARTESDIR/$geofabrik_map = /usr/local/misc/cartes/auvergne.osm.bz2 java -version java version "1.7.0_15" Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode) any ideas? Thanks. Francois --

Hi, sorry, my answer via hotmail went directly to Francois instead of the list. Does anybody know how to disable this "feature" in hotmail? @Steve: Please check Francois' question regarding libs. Would that be an option? Gerd Francois wrote
Hello Gerd,
the distributed package contains fastutil-6.5.2-mkg.1.jar. If you use a script to extract mkgmap from the package, please make sure to extract the lib directory as well.
Yes, I use a script to compile mkgmap and splitter, and you are right, with the lib files as well, it works fine.
I was wondering if it would have been useful to "add the lib files", in the mkgmap and splitter jar files themselves. That way no more problem to be sure to use the latest and right lib files, as they would be included in the jar files....
-- View this message in context: http://gis.19327.n5.nabble.com/java-lang-NoClassDefFoundError-tp5752445p5752... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (2)
-
Francois
-
GerdP