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 |
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 Thanks, works perfectly!
(21 Feb '11, 21:17)
George
|