Why not ask your question on the new OpenStreetMap Community Forum?

I am using Snow Leopard and am trying to use Osmosis, but it refuses to work with me.

I get the error below whenever I try to just open Osmosis:

Mac:osmosis-0.38 George$ java /Users/George/Downloads/osmosis-0.38/bin/osmosis Exception in thread "main" java.lang.NoClassDefFoundError: /Users/George/Downloads/osmosis-0/38/bin/osmosis Caused by: java.lang.ClassNotFoundException: .Users.George.Downloads.osmosis-0.38.bin.osmosis 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Any suggestions as to how to get it running? I am using java version "1.6.0_22"

asked 20 Feb '11, 09:17

George's gravatar image

accept rate: 0%

You'ure using the java command in a wrong way. The bin/osmosis file is a shell script, not a java class file, so you have to run it like that: /Users/George/Downloads/osmosis-0.38/bin/osmosis If the file isn't executable, run that before: chmod +x /Users/George/Downloads/osmosis-0.38/bin/osmosis

permanent link

answered 21 Feb '11, 15:42

NicolasDumoulin's gravatar image

accept rate: 13%

Thanks, works perfectly!

(21 Feb '11, 21:17) George
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 20 Feb '11, 09:17

question was seen: 6,605 times

last updated: 21 Feb '11, 21:17

powered by OSQA