splitter error : java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter

Hello, Running splitter, now, this is the error I get : Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: uk.me.parabola.splitter.Main. Program will exit. Last time I ran it (02/21) with the same parameters, it worked like a charm. Francois --

Hello
Running splitter, now, this is the error I get :
Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter
Last time I ran it (02/21) with the same parameters, it worked like a charm. Francois
This is due to not having the osmpbf.jar and/or the protobuf.jar or them not being available on the classpath. If you download splitter-r164 it should work out of the box as long as you use the -jar option to java. java -jar splitter.jar ... ..Steve

Le 27/02/2011 15:22, Steve Ratcliffe a écrit :
This is due to not having the osmpbf.jar and/or the protobuf.jar or them not being available on the classpath.
If you download splitter-r164 it should work out of the box as long as you use the -jar option to java.
java -jar splitter.jar ...
:-( It didn't. I've tried : export CLASSPATH=$CLASSPATH:/opt/jars/osmprotobuf/osmpbf.jar:/opt/jars/protobuf-2.3.0/protobuf.jar java -Xmx896m -jar $FILEDIR/splitter.jar --cache=$cache --geonames-file=$geonames_file --max-areas="$max_areas" --max-nodes="$max_nodes" --description="$description_splitter" --mapid=$mapid $CARTESDIR/$geofabrik_map java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing) I've downloaded splitter -r164, but got the same result. Do not know where my mistake is.... Francois --

Le 27/02/2011 18:24, Henning Scholland a écrit :
I've downloaded splitter -r164, but got the same result. Do not know where my mistake is.... Francois Did you also copied lib directory next to splitter.jar?
Bingo, you did it. Now it works as before. Great and thank you. Francois --

Hello
export CLASSPATH=$CLASSPATH:/opt/jars/osmprotobuf/osmpbf.jar:/opt/jars/protobuf-2.3.0/protobuf.jar java -Xmx896m -jar $FILEDIR/splitter.jar --cache=$cache
The CLASSPATH has no effect when you use -jar. The jar file contains its own class path which contains all the jar files in the lib directory of the distribution. ..Steve
participants (3)
-
frmas
-
Henning Scholland
-
Steve Ratcliffe