Hi, I'm following this page https://wiki.openstreetmap.org/wiki/Mkgmap/help/How_to_create_a_map tutorial. Unfortunately I don't get very far. I've installed java 1.7 on Ubuntu 12.04. I've downloaded splitter-r423.jar and us-northeast-latest.osm.pbf to ~/Project$.

I then run $ java -jar splitter-r423.jar us-northeast-latest.osm.pbf

and I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) at java.lang.Class.getMethod0(Class.java:2856) at java.lang.Class.getMethod(Class.java:1668) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 6 more I suspect it has to do with classpath but I can't fix it. Could you help? Thank You

asked 31 May '15, 03:42

Pierre222's gravatar image

Pierre222
11112
accept rate: 0%

edited 31 May '15, 21:01

Richard's gravatar image

Richard ♦
27.8k40247369


I think you need to have all splitter files from the zip file, not only the jar file.

permanent link

answered 31 May '15, 09:10

ligfietser's gravatar image

ligfietser
2.9k52757
accept rate: 11%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×42
×30
×1

question asked: 31 May '15, 03:42

question was seen: 1,814 times

last updated: 31 May '15, 21:01

powered by OSQA