[OSM-dev] Problem installing Osmosis on OSX

Brett Henderson brett at bretth.com
Thu Nov 6 11:12:51 GMT 2008


That's very strange.  I compile it with jdk1.6 and it appears you're 
running 1.6 so I don't understand what is happening.  The 
UnsupportedClassVersionError usually only occurs if you try to run 
osmosis with an old version of java.

Perhaps try getting the java command line out of the osmosis launch 
script and run java directly from the command line.  Perhaps my launch 
script is doing something funky and running the wrong version of java ...

Does anybody else have any ideas?

James Croft wrote:
> Hi,
> I'm having some problems installing Osmosis on OSX.  I've been 
> following the instructions at: 
> http://wiki.openstreetmap.org/index.php/Osmosis/Installation.
> I've installed java 1.6:
> macbook~/Desktop/osmosis-0.29\: java -version
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
>
> But when I run bin/osmosis I get the following error:
> macbook~/Desktop/osmosis-0.29\: bin/osmosis
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad 
> version number in .class file
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>
> Can anyone help with this?
> Thanks
> James
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>   





More information about the dev mailing list