[OSM-dev] Problem running osmosis (PluginLifecycleException)
Christoph Eckert
ce at christeck.de
Sun Jun 21 11:12:09 BST 2009
Hi,
thanks for the help:
> You need to have all of the jar files in the osmosis/lib/default
> directory available on the classpath. This includes jpf-1.5.jar which
> contains the missing class org/java/plugin/PluginLifecycleException
> listed above.
OK, that's the case.
> If osmosis.bat batch file or osmosis shell script files in the bin
> directory should do this for you. Is there a reason you can't use the
> launch scripts provided?
No. I just did it the other way as it worked with osmosis 0.24 :) .
[...]
> The java version you are using is fine. You're just missing the
> additional jars required to make osmosis run. osmosis.jar itself only
> contains osmosis classes, it doesn't include all of the external
> dependencies required.
I had a closer look at the osmosis shell script. So I do:
./osmosis-0.31/bin/osmosis --read-xml file="someosm.bz2" --node-key-value
place.city,place.town --way-key-value
highway.motorway,highway.trunk,highway.primary,highway.secondary --write-xml
file="basemap.osm"
Now I get some class version error (see below). Is my java installation
messed?
Thanks a bunch,
ce
--- 8< ---
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version
number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
More information about the dev
mailing list