[OSM-talk] Osmosis exception
Brett Henderson
brett at bretth.com
Mon Nov 8 02:03:59 GMT 2010
Do any of those paths have spaces in them? That might cause the issue.
Also, are multiple drive letters involved? The osmosis.bat launch script
appears to have an issue where it requires Osmosis to be on the same drive
as the working directory.
Brett
On Sun, Nov 7, 2010 at 11:46 PM, Carsten Nielsen <list_reply at toensberg.dk>wrote:
>
> When extracting a OSM dataset for denmark from the geofabrik europe file, I
> use a line like this on my Windows 7 system
>
> call "%OSMTOOLS%\Osmosis\osmosis-0.37\bin\osmosis.bat" --read-bin
> "%DATADIR%\europe.osm.pbf" --bounding-polygon-0.6 file="%DATADIR%\CTN OSM DK
> mm.poly.txt" --write-xml-0.6 file="%DATADIR%\denmark_mm.osm"
>
>
> But I get en error like this
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/codehaus/classworlds/Launcher
> Caused by: java.lang.ClassNotFoundException:
> org.codehaus.classworlds.Launcher
> 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)
> Could not find the main class: org.codehaus.classworlds.Launcher. Program
> will exit.
>
> Any clues to what I might do wrong ?
>
>
> Carsten
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20101108/72f422d7/attachment.html>
More information about the talk
mailing list