It looks like you're using a gcj version of java. I've never tested that JVM before and I suspect it won't work. The 1.5 version of osmosis was primarily created to allow osmosis to run on PowerPC-based Macs which only have Java 1.5.

Can you download and use a Sun 1.6 JVM instead? You're much less likely to run into problems that way. You can just extract a java installation in your home directory and run it from there.

Andreas Kalsch wrote:
It's the Java 1.5 version from http://cloudmade-osmosis.s3.amazonaws.com/api0.6-java1.5 ... Debian etch delivers packages for Java 1.5 by default.

Brett Henderson schrieb:
Hi Andreas,

How did you obtain osmosis? I assume you're not using a copy obtained from the following location:
http://wiki.openstreetmap.org/index.php/Osmosis

Brett

Andreas Kalsch wrote:
When I call the binary, JDBC will not be found. When I call it like this ...

java --classpath "3rdparty/osmosis/osmosis.jar:3rdparty/osmosis/lib/compile/postgresql-8.3-603.jdbc4.jar:/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/lib/rt.jar" org.openstreetmap.osmosis.core.Osmosis --rx temp/berlin.osm --wd database="osm_test"password=".."

... there's the result:

30-Jul-09 9:42:41 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.31.1
30-Jul-09 9:42:42 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: org.openstreetmap.osmosis.core.TaskRegistrar
   at java.lang.Class.initializeClass(libgcj.so.90)
   at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:73)
   at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
Caused by: java.lang.ClassNotFoundException: org.java.plugin.PluginClassLoader not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:3rdparty/osmosis/osmosis.jar,file:3rdparty/osmosis/lib/compile/postgresql-8.3-603.jdbc4.jar,file:/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/lib/rt.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.90)
   at java.lang.ClassLoader.loadClass(libgcj.so.90)
   at java.lang.ClassLoader.loadClass(libgcj.so.90)
   at java.lang.Class.initializeClass(libgcj.so.90)
   ...2 more

It seems that there are still some standard Java JARs missing in the classpath. Does someone know which ones?

Andi

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev



_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to