[OSM-dev] Problem installing Osmosis on OSX
Shaun McDonald
shaun at shaunmcdonald.me.uk
Thu Nov 6 11:20:34 GMT 2008
Hi James,
That's interesting because I've had osmosis running fine with Java 6
selected in the Java Preferences.app in Mac OS X 10.5.5. Try changing
it to Java 5, quit Java Preferences.app, run java -version. Then
changing back to Java 6 in Java Preferences.app, quit Java
Preferences.app and see if osmosis works. Else I'd try re-running the
Java update.
shaun-mcdonalds-macbook:osmosis-0.29 shaunmcdonald$ ./bin/osmosis --
read-xml file="../united_kingdom.osm.bz2" compressionMethod=bzip2 --
write-mysql host="localhost" database="openstreetmap"
user="openstreetmap" password="openstreetmap" validateSchemaVersion=no
04-Nov-2008 15:50:16 com.bretth.osmosis.core.Osmosis main
INFO: Osmosis Version 0.29
04-Nov-2008 15:50:16 com.bretth.osmosis.core.Osmosis main
INFO: Preparing pipeline.
04-Nov-2008 15:50:16 com.bretth.osmosis.core.Osmosis main
INFO: Launching pipeline execution.
04-Nov-2008 15:50:16 com.bretth.osmosis.core.Osmosis main
INFO: Pipeline executing, waiting for completion.
04-Nov-2008 17:32:18 com.bretth.osmosis.core.Osmosis main
INFO: Pipeline complete.
shaun-mcdonalds-macbook:osmosis-0.29 shaunmcdonald$ 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)
shaun-mcdonalds-macbook:osmosis-0.29 shaunmcdonald$
Shaun
On 6 Nov 2008, at 10:54, 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20081106/c028e7d8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2433 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20081106/c028e7d8/attachment.bin>
More information about the dev
mailing list