logo separator

[mkgmap-dev] Splitter on MacOS?

From Dermot McNally dermotm at gmail.com on Mon Jul 6 00:25:57 BST 2009

Hi folks,

Up until now, I've never bothered using the splitter (you can get all
of Ireland onto one .img file). But now I want to build a map of NL in
anticipation of SOTM. I'm on MacOS Leopard and can't seem to make the
splitter work.

When I try to use "ant dist" to build from latest svn I get the following:

compile:
    [javac] Compiling 16 source files to
/Users/dermot/Mapping/osm/Garmin
Maps/routable/splitter/trunk/build/classes
    [javac] /Users/dermot/Mapping/osm/Garmin
Maps/routable/splitter/trunk/src/uk/me/parabola/splitter/AreaList.java:73:
cannot find symbol
    [javac] symbol  : variable ROOT
    [javac] location: class java.util.Locale
    [javac] 				pw.format(Locale.ROOT, "%d: %d,%d to %d,%d\n",
    [javac]                                                 ^
    [javac] /Users/dermot/Mapping/osm/Garmin
Maps/routable/splitter/trunk/src/uk/me/parabola/splitter/AreaList.java:77:
cannot find symbol
    [javac] symbol  : variable ROOT
    [javac] location: class java.util.Locale
    [javac] 				pw.format(Locale.ROOT, "#       : %f,%f to %f,%f\n",
    [javac]                                                 ^
    [javac] /Users/dermot/Mapping/osm/Garmin
Maps/routable/splitter/trunk/src/uk/me/parabola/splitter/AreaList.java:110:
cannot find symbol
    [javac] symbol  : method isEmpty()
    [javac] location: class java.lang.String
    [javac] 				if (line.isEmpty() || line.charAt(0) == '#')
    [javac]                                         ^
    [javac] /Users/dermot/Mapping/osm/Garmin
Maps/routable/splitter/trunk/src/uk/me/parabola/splitter/SubArea.java:93:
cannot find symbol
    [javac] symbol  : variable ROOT
    [javac] location: class java.util.Locale
    [javac] 		String filename = new Formatter().format(Locale.ROOT,
"%08d.osm.gz", mapid).toString();
    [javac]                                                                ^
    [javac] 4 errors


Trying the prebuilt jar file doesn't work either:

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:675)
	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:316)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)


I daresay the reasons for these failures will be obvious to somebody
with more idea of java than me, so apologies if I'm missing something
obvious.

Cheers,
Dermot


-- 
--------------------------------------
Iren sind menschlich



More information about the mkgmap-dev mailing list