[OSM-dev] Osmosis 0.34 Java Exception

Brett Henderson brett at bretth.com
Tue Mar 16 22:16:14 GMT 2010


Sorry, that wasn't a very clear email.  The error you're seeing is because
Osmosis can't find all required application files during startup.  Having
spaces in the path may cause this.  It has nothing to do with the
workingDirectory option.

On Wed, Mar 17, 2010 at 9:14 AM, Brett Henderson <brett at bretth.com> wrote:

> Have you installed Osmosis to a path that includes spaces?  There appears
> to be an issue with spaces, but I haven't looked into it yet.
>
> Brett
>
>
> On Wed, Mar 17, 2010 at 6:16 AM, Aaron Schaefer <aaron at elasticdog.com>wrote:
>
>> On Fri, Mar 5, 2010 at 2:39 PM, John Smith <deltafoxtrot256 at gmail.com>
>> wrote:
>> > On 6 March 2010 01:09, Aaron Schaefer <aaron at elasticdog.com> wrote:
>> >> I'm having a similar issue as André Riedel last month:
>> >> http://lists.openstreetmap.org/pipermail/dev/2010-February/018500.html
>> >> ...but it's not quite the same error and the 0.34 release didn't fix
>> >> it. Using the Osmosis 0.34 release, I'm getting the following message:
>> >>
>> >> osmosis-0.34 $ ./bin/osmosis --read-change-interval-init
>> >
>> > From http://wiki.openstreetmap.org/wiki/Minutely_Mapnik
>> >
>> > osmosis --rrii workingDirectory=.
>> > osmosis --rri workingDirectory=. --wxc diffs.osc.gz
>> > osmosis --rri workingDirectory=. --wxc | osm2pgsql -a .....
>>
>>
>> Sorry for the delayed response...including the working directory
>> specification does not change my Java error:
>>
>> # ./bin/osmosis --rrii workingDirectory=tmp
>> 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.
>>
>> Is there anything special you have to do with the Java installation
>> for this to work?
>>
>> --
>> Aaron Schaefer
>>
>> _______________________________________________
>> dev mailing list
>> dev at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100317/8a5d28ab/attachment.html>


More information about the dev mailing list