Hi,

On 17/03/14 at 14:20 +0100, Andreas Tille wrote:
> Hi,
> 
> On Sat, Mar 15, 2014 at 06:29:16PM +0100, Francesco P. Lovergine wrote:
> > On Fri, Mar 14, 2014 at 11:45:14AM +0100, Lucas Nussbaum wrote:
> > > Package: mkgmap
> > > Version: 0.0.0+svn2981-1
> > > Severity: normal
> > > 
> > > Hi,
> > > 
> > > mkgmap crashes when trying to generate an img file from a osm extract:
> > > 
> > 
> > [...]
> > 
> > > Versions of packages mkgmap depends on:
> > > ii  ant            1.9.3-2
> > > ii  default-jre    2:1.7-51
> > > ii  openjdk-7-jre  7u51-2.4.5-2
> > > 
> > 
> > Hi Lucas, let me guess: it works with openjdk 6?
> 
> ... in other words: Should we make sure that the wrapper will only call
> java from openjdk 7 to fix this problem? 
> 
> Lucas, it would help if you could try openjdk 7 explicitly whether the
> problem remains.

I was using openjdk 7:
$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.5) (7u51-2.4.5-2)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

It doesn't work with openjdk6:
$ /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java -jar -Xmx2048M 
/usr/share/mkgmap/mkgmap.jar --latin1 --family-id=900 --show-profiles=1 --route 
--add-pois-to-areas --index --product-id=1 --description= --series-name= 
--family-name= --gmapsupp --tdbfile rennes.osm
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
uk/me/parabola/mkgmap/main/Main : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        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)
Could not find the main class: uk.me.parabola.mkgmap.main.Main. Program will 
exit.

FWIW, i've pushed the rennes.osm file i'm using to 
http://blop.info/pub/rennes.osm

Lucas

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to