logo separator

[mkgmap-dev] Classpath problems with splitter

From Johann Gail johann.gail at gmx.de on Sun Feb 8 17:45:09 GMT 2009

Hello,

I'm trying since hours to get the splitter running from source with 
ubuntu 8.10. I've checked out the newest source from svn, compiled it 
with 'ant dist' and try to start it with 'java -jar splitter.jar.'
The classpath is set systemwide, so mkgmap.jar (latest svn revision) 
should be found.

The result is always:
Exception in thread "main" java.lang.NoClassDefFoundError: 
uk/me/parabola/mkgmap/general/MapDetails
    at uk.me.parabola.splitter.DivisionParser.<init>(DivisionParser.java:42)
    at uk.me.parabola.splitter.Main.calculateAndSplit(Main.java:144)
    at uk.me.parabola.splitter.Main.split(Main.java:82)
    at uk.me.parabola.splitter.Main.main(Main.java:67)
Caused by: java.lang.ClassNotFoundException: 
uk.me.parabola.mkgmap.general.MapDetails
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
    ... 4 more

I'm pretty sure that the classpath is set correctly.

For a last try I downloaded the precompiled splitter.jar and was really 
astonished: It runs without problems.
So something has to be wrong with my compiled jar file.

Has anyone any idea what could be wrong?

Regards,
Johann





More information about the mkgmap-dev mailing list