logo separator

[mkgmap-dev] Compiling Mkgmap failes

From Marko Mäkelä marko.makela at iki.fi on Wed Dec 2 08:01:52 GMT 2009

Hi Lambertus,

On Tue, Dec 01, 2009 at 10:23:33PM +0100, Lambertus wrote:
> I'm having problems compiling Mkgmap, maybe someone here is able to help 
> with that:
> Before compiling I removed all java stuff, then installed sun-java6-jdk 
> on my ubuntu installation. Then downloaded Mkgmap from SVN, ran 'ant 
> dist' as per Mkgmap wiki page and got the following error:
>  > ant dist
> Buildfile: build.xml
> prepare:
> compile:
>     [javac] Compiling 317 source files to 
> /home/lambertus/garmin/test/mkgmap/build/classes
>     [javac] failed to read ecj.jar (reconfigure with --with-ecj-jar): 
> /usr/share/java/eclipse-ecj.jar
>     [javac] failed to load org.eclipse.jdt.internal.compiler.batch.Main 
> from ecj.jar: /usr/share/java/eclipse-ecj.jar
>     [javac] java.lang.ClassNotFoundException: 
> org.eclipse.jdt.internal.compiler.batch.Main not found in 
> java.net.URLClassLoader{urls=[file:/usr/share/java/eclipse-ecj.jar], 
> parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/share/ant/lib/ant-launcher.jar,file:/usr/share/java/xmlParserAPIs.jar,file:/usr/share/java/xercesImpl.jar], 
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
>     [javac]    at java.net.URLClassLoader.findClass(libgcj.so.10)
>     [javac]    at java.lang.ClassLoader.loadClass(libgcj.so.10)
>     [javac]    at java.lang.ClassLoader.loadClass(libgcj.so.10)
>     [javac]    at com.sun.tools.javac.Main.<clinit>(Main.java:91)

Can you invoke javac from the command line?  I do not have any Eclipse
stuff installed on my Debian Lenny system.  I am using the sun-java6-jdk
package (Version 6-12-1, http://packages.debian.org/lenny/sun-java6-jdk).


More information about the mkgmap-dev mailing list