<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
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.<br>
<br>
Andreas Kalsch wrote:
<blockquote cite="mid:4A718B85.50702@gmx.de" type="cite">
<pre wrap="">It's the Java 1.5 version from
<a class="moz-txt-link-freetext" href="http://cloudmade-osmosis.s3.amazonaws.com/api0.6-java1.5">http://cloudmade-osmosis.s3.amazonaws.com/api0.6-java1.5</a> ... Debian etch
delivers packages for Java 1.5 by default.
Brett Henderson schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Andreas,
How did you obtain osmosis? I assume you're not using a copy obtained
from the following location:
<a class="moz-txt-link-freetext" href="http://wiki.openstreetmap.org/index.php/Osmosis">http://wiki.openstreetmap.org/index.php/Osmosis</a>
Brett
Andreas Kalsch wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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=[<a class="moz-txt-link-freetext" href="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">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</a>],
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
<a class="moz-txt-link-abbreviated" href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a>
</pre>
</blockquote>
<br>
</body>
</html>