[OSM-dev] Postgres und Osmosis
Brett Henderson
brett at bretth.com
Thu Jul 30 12:53:51 BST 2009
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
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
More information about the dev
mailing list