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%


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

link

answered 21 Feb '11, 15:42

NicolasDumoulin's gravatar image

NicolasDumoulin
2.6k31448
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

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

Tags:

×89
×10
×4

Asked: 20 Feb '11, 09:17

Seen: 2,178 times

Last updated: 21 Feb '11, 21:17

powered by OSQA