[osmosis-dev] Problem using Osmosis (PluginLifecycleException)
Kai Behncke
Kai-Behncke at gmx.de
Tue Nov 10 11:36:32 GMT 2009
Hi Marcus,
> Changing the .bat will be enough to make it work.
>
I hoped it would be but in my case it does not work.
I did:
-----------
REM MAINCLASS=org.openstreetmap.osmosis.core.Osmosis
REM EXEC="$JAVACMD -cp $MYAPP_HOME/osmosis.jar:$MYAPP_HOME/lib/test/jpf-1.5.jar:osmosis.jar:$MYAPP_HOME/lib/mysql-connector-java-5.0.7-bin.jar:$MYAPP_HOME/lib/postgresql-8.3-603.jdbc4.jar:$MYAPP_HOME/lib/postgis_1.3.2.jar $MAINCLASS $@"
REM
REM #echo $EXEC
REM exec $EXEC
set MAINCLASS=org.openstreetmap.osmosis.core.Osmosis
SET EXEC=%JAVACMD% %JAVACMD_OPTIONS% -cp %MYAPP_HOME%\osmosis.jar;%MYAPP_HOME\lib\test\jpf-1.5.jar;%MYAPP_HOME%\lib\commons-logging.jar;%MYAPP_HOME%\lib\mysql-connector-java-5.0.7-bin.jar;%MYAPP_HOME%\lib\postgresql-8.3-603.jdbc4.jar;%MYAPP_HOME%\lib\postgis_1.3.2.jar %MAINCLASS% %OSMOSIS_OPTIONS% %*
%EXEC%
-------------
...in the osmosis.bat
Then I tried:
E:\osmosis\bin>osmosis --read-xml E:/gis_customizing_09/niedersachsen_osm/niedersachsen.osm --bb left=7.917 right=8.1694
top=52.3537 bottom=52.217 --write-xml E:/gis_customizing_09/niedersachsen_osm/osnabrueck3.osm
and I get:
Usage: java [-options] class [args...
(to execute a class)
or java [-options] -jar jarfile [
(to execute a jar file)
If I try:
E:\osmosis>java -jar osmosis.jar --read-xml E:/gis_customizing_09/niedersachsen_osm/niedersachsen.osm --bb lef
ght=8.1694 top=52.3537 bottom=52.217 --write-xml E:/gis_customizing_09/niedersachsen_osm/osnabrueck3.osm
.....then I still get:
10.11.2009 12:08:26 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.31
10.11.2009 12:08:26 org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
java.lang.NoClassDefFoundError: org/java/plugin/PluginLifecycleException
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.PluginLifecycleException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
Did it work in your case?
Do I need a special Java-Version maybe?
Thank you very much, Kai
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
More information about the osmosis-dev
mailing list