This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Installing Osmosis on OSX

1

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

George
21113
accept rate: 0%


One Answer:

3

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

answered 21 Feb '11, 15:42

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

Thanks, works perfectly!

(21 Feb '11, 21:17) George

Source code available on GitHub .