[OSM-dev] Postgres und Osmosis

Andreas Kalsch andreaskalsch at gmx.de
Thu Jul 30 08:45:16 BST 2009


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




More information about the dev mailing list