[mkgmap-dev] Building display.jar fails
From Felix Hartmann extremecarver at gmail.com on Thu Dec 2 18:44:52 GMT 2021
thanks - but I still seem to be unable - I copied your command and changed the pathes.: C:\openmtbmap>java -ea -Xmx6800m -cp display.jar;mkgmap.jar test.display.MdrDisplay gmapsupp.img Could not open file: gmapsupp.img other tries: C:\openmtbmap>java -ea -jar -Xmx6800m -cp display.jar;mkgmap.jar gmapsupp.img Error: Invalid or corrupt jarfile gmapsupp.img C:\openmtbmap>java -ea -Xmx6800m -cp display.jar;mkgmap.jar gmapsupp.img Error: Could not find or load main class gmapsupp.img Caused by: java.lang.ClassNotFoundException: gmapsupp.img On Thu, 2 Dec 2021 at 17:50, Gerd Petermann <gpetermann_muenchen at hotmail.com> wrote: > Hi Felix, > > display tool always needs mkgmap.jar for execution: > my command line looks like this: > java -ea -Xmx6800m -cp > d:\display\dist\display.jar;d:\mkgmap\dist\mkgmap.jar > test.display.MdrDisplay gmapsupp.img > > Gerd > > ________________________________________ > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von > Felix Hartmann <extremecarver at gmail.com> > Gesendet: Donnerstag, 2. Dezember 2021 17:46 > An: Development list for mkgmap > Betreff: Re: [mkgmap-dev] Building display.jar fails > > still the same problem if I don't link the build folder of mkgmap_trunk > but instead the mkgmap.jar in the basefolder: > > C:\openmtbmap\mkgmap_display>ant dist > Buildfile: C:\openmtbmap\mkgmap_display\build.xml > > prepare: > [mkdir] Created dir: C:\openmtbmap\mkgmap_display\build\classes > > ivy-availability: > > download-ivy: > > init-ivy: > [ivy:configure] :: Apache Ivy 2.5.0 - 20191020104435 :: > https://ant.apache.org/ivy/ :: > [ivy:configure] :: loading settings :: file = > C:\openmtbmap\mkgmap_display\ivysettings.xml > > resolve-compile: > > compile: > [javac] Compiling 76 source files to > C:\openmtbmap\mkgmap_display\build\classes > [javac] > C:\openmtbmap\mkgmap_display\src\test\check\CommonCheck.java:141: warning: > [deprecation] newInstance() in Class has been deprecated > [javac] CommonCheck check = > cls.newInstance(); > [javac] ^ > [javac] where T is a type-variable: > [javac] T extends Object declared in class Class > [javac] > C:\openmtbmap\mkgmap_display\src\test\display\SrtDisplay.java:470: warning: > [rawtypes] found raw type: Comparable > [javac] private class CharPosition implements Comparable { > [javac] ^ > [javac] missing type arguments for generic class Comparable<T> > [javac] where T is a type-variable: > [javac] T extends Object declared in interface Comparable > [javac] > C:\openmtbmap\mkgmap_display\src\test\display\SrtDisplay.java:502: warning: > [removal] Integer(int) in Integer has been deprecated and marked for removal > [javac] return new > Integer(val).compareTo(c2.val); > [javac] ^ > [javac] 3 warnings > > build: > > dist: > [jar] Building jar: C:\openmtbmap\mkgmap_display\dist\display.jar > > BUILD SUCCESSFUL > Total time: 6 seconds > > it compiles but then on use it complains: > > C:\openmtbmap\mkgmap_display>start /normal /b /wait java -jar > C:\openmtbmap\display.jar c:\openmtbmap\gmapsupp.img > no main manifest attribute, in C:\openmtbmap\display.jar > > On Thu, 2 Dec 2021 at 17:33, Gerd Petermann < > gpetermann_muenchen at hotmail.com<mailto:gpetermann_muenchen at hotmail.com>> > wrote: > Hi Felix, > > please try > ant clean dist > log > and post a link to the file log > > I did this: > checkout: svn co https://svn.mkgmap.org.uk/mkgmap/display/trunk display > copy mkgmap.jar into display\lib\compile > execute ant dist > Compile works with one warning. > ant -version says > Apache Ant(TM) version 1.10.8 compiled on May 10 2020 > javac -versio says > javac 1.8.0_272 > > Gerd > > ________________________________________ > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto: > mkgmap-dev-bounces at lists.mkgmap.org.uk>> im Auftrag von Felix Hartmann < > extremecarver at gmail.com<mailto:extremecarver at gmail.com>> > Gesendet: Donnerstag, 2. Dezember 2021 17:26 > An: Development list for mkgmap > Betreff: Re: [mkgmap-dev] Building display.jar fails > > then it does not find anything anymore. > > like this: > > ompile: > [javac] Compiling 589 source files to > C:\openmtbmap\mkgmap_display\build\classes > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\Coord.java:23: > error: package it.unimi.dsi.fastutil.longs does not exist > [javac] import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\Coord.java:124: > error: cannot find symbol > [javac] public static Coord makeHighPrecCoord(int latHp, int > lonHp, Long2ObjectOpenHashMap<Coord> coordPool) { > [javac] > ^ > [javac] symbol: class Long2ObjectOpenHashMap > [javac] location: class Coord > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\lbl\LBLFileReader.java:21: > error: package it.unimi.dsi.fastutil.ints does not exist > [javac] import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\net\RouteNode.java:25: > error: package it.unimi.dsi.fastutil.ints does not exist > [javac] import it.unimi.dsi.fastutil.ints.IntArrayList; > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\reader\osm\TagDict.java:18: > error: package it.unimi.dsi.fastutil.shorts does not exist > [javac] import it.unimi.dsi.fastutil.shorts.ShortArrayList; > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\reader\osm\TagDict.java:98: > error: cannot find symbol > [javac] public static ShortArrayList compileTags(String ...keys) { > [javac] ^ > [javac] symbol: class ShortArrayList > [javac] location: class TagDict > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\imgfmt\app\lbl\LBLFileReader.java:54: > error: cannot find symbol > [javac] private final Int2ObjectOpenHashMap<Label> labels = new > Int2ObjectOpenHashMap<>(); > [javac] ^ > > On Thu, 2 Dec 2021 at 16:54, Gerd Petermann < > gpetermann_muenchen at hotmail.com<mailto:gpetermann_muenchen at hotmail.com > ><mailto:gpetermann_muenchen at hotmail.com<mailto: > gpetermann_muenchen at hotmail.com>>> wrote: > Hi Felix, > > please try svn up. > Maybe the change in > https://www.mkgmap.org.uk/websvn/revision.php?repname=display&rev=565 > helps. > > Gerd > > ________________________________________ > Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto: > mkgmap-dev-bounces at lists.mkgmap.org.uk><mailto: > mkgmap-dev-bounces at lists.mkgmap.org.uk<mailto: > mkgmap-dev-bounces at lists.mkgmap.org.uk>>> im Auftrag von Felix Hartmann < > extremecarver at gmail.com<mailto:extremecarver at gmail.com><mailto: > extremecarver at gmail.com<mailto:extremecarver at gmail.com>>> > Gesendet: Donnerstag, 2. Dezember 2021 16:49 > An: Development list for mkgmap > Betreff: [mkgmap-dev] Building display.jar fails > > I can actually avoid it by placing mkgmap.jar into the display tool folder > - however then the display.jar is not working and ends with the notice: > "no main manifest attribute, in C:\openmtbmap\display.jar" > > > > > I get the following error I don't know how to solve when building the > display.jar display tool - with the mkgmap folder inserted into the > build.xml: > > Buildfile: C:\openmtbmap\mkgmap_display\build.xml > > prepare: > [mkdir] Created dir: C:\openmtbmap\mkgmap_display\build\classes > > ivy-availability: > > download-ivy: > [mkdir] Created dir: C:\openmtbmap\mkgmap_display\lib\build > [get] Getting: > https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.5.0/ivy-2.5.0.jar > [get] To: C:\openmtbmap\mkgmap_display\lib\build\ivy-2.5.0.jar > > init-ivy: > [ivy:configure] :: Apache Ivy 2.5.0 - 20191020104435 :: > https://ant.apache.org/ivy/ :: > [ivy:configure] :: loading settings :: file = > C:\openmtbmap\mkgmap_display\ivysettings.xml > > resolve-compile: > > compile: > [javac] Compiling 589 source files to > C:\openmtbmap\mkgmap_display\build\classes > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416: > error: unclosed character literal > [javac] if (ch == 'ª' || (Character.isLetter(ch) > && (Character.getType(ch) & Character.MODIFIER_LETTER) == 0)) > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416: > error: unclosed character literal > [javac] if (ch == 'ª' || (Character.isLetter(ch) > && (Character.getType(ch) & Character.MODIFIER_LETTER) == 0)) > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416: > error: not a statement > [javac] if (ch == 'ª' || (Character.isLetter(ch) > && (Character.getType(ch) & Character.MODIFIER_LETTER) == 0)) > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416: > error: not a statement > [javac] if (ch == 'ª' || (Character.isLetter(ch) > && (Character.getType(ch) & Character.MODIFIER_LETTER) == 0)) > [javac] ^ > [javac] > C:\openmtbmap\mkgmap_display\src\uk\me\parabola\mkgmap\srt\SrtTextReader.java:416: > error: ';' expected > [javac] if (ch == 'ª' || (Character.isLetter(ch) > && (Character.getType(ch) & Character.MODIFIER_LETTER) == 0)) > [javac] > ^ > [javac] 5 errors > > > > > > -- > Felix Hartman - Openmtbmap.org & VeloMap.org > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk > ><mailto:mkgmap-dev at lists.mkgmap.org.uk<mailto: > mkgmap-dev at lists.mkgmap.org.uk>> > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > > -- > Felix Hartman - Openmtbmap.org & VeloMap.org > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk> > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > > -- > Felix Hartman - Openmtbmap.org & VeloMap.org > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -- Felix Hartman - Openmtbmap.org & VeloMap.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20211202/cc0a4ac4/attachment-0001.html>
- Previous message: [mkgmap-dev] Building display.jar fails
- Next message: [mkgmap-dev] Building display.jar fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list