NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am on a VPS running Debian 4 on Dreamhost, and am having problems running an extract on planet-latest.osm.bz2

bzcat planet-latest.osm.bz2 | osmosis\
 -read-xml enableDateParsing=no file=/dev/stdin\
 --bounding-box top=50.2866 left=-123.1448 bottom=49.8866 right=-122.7448--write-xml file=-\
 | bzip2 > extracted.osm.bz2

Yields

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(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

How do I fix this? Also does anyone now how long an extract like this would take? I only have 300mb of dedicated RAM but more available for short periods of time.

asked 10 Feb '11, 19:41

wbski's gravatar image

wbski
1466914
accept rate: 50%


Found the problem. Have to execute Osmosis from the directory above the bin directory

permanent link

answered 04 Mar '11, 06:16

wbski's gravatar image

wbski
1466914
accept rate: 50%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252
×83
×76
×56

question asked: 10 Feb '11, 19:41

question was seen: 7,360 times

last updated: 04 Mar '11, 06:16

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum