#117 Corrupted jarfile

ver_3.x
open
nobody
None
1
2014-09-07
2013-03-12
Sworddragon
No

I have compiled the newest git but the command java (OpenJDK 7u15-2.3.7) is telling me that the jarfile is corrupted. Here is the complete output:

sworddragon@ubuntu:~/data/ipscan-master$ ant linux64
Buildfile: /home/sworddragon/data/ipscan-master/build.xml

clean:

clean_end:

compile-linux64:
[mkdir] Created dir: /home/sworddragon/data/ipscan-master/ant-bin.linux64
[javac] /home/sworddragon/data/ipscan-master/build.xml:114: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 141 source files to /home/sworddragon/data/ipscan-master/ant-bin.linux64
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] 1 warning
[copy] Copying 27 files to /home/sworddragon/data/ipscan-master/ant-bin.linux64

build-info:
[exec] The command attribute is deprecated.
[exec] Please use the executable attribute and nested arg elements.
[exec] Result: 128

package-linux64:
[copy] Copying 1 file to /home/sworddragon/data/ipscan-master/ant-bin.linux64
[mkdir] Created dir: /home/sworddragon/data/ipscan-master/dist
[unzip] Expanding: /home/sworddragon/data/ipscan-master/lib/picocontainer-1.0.jar into /home/sworddragon/data/ipscan-master/ant-bin.linux64
[unzip] Expanding: /home/sworddragon/data/ipscan-master/lib/swt-linux64.jar into /home/sworddragon/data/ipscan-master/ant-bin.linux64
[jar] Building jar: /home/sworddragon/data/ipscan-master/dist/ipscan-linux64-orig.jar
[copy] Copying 1 file to /home/sworddragon/data/ipscan-master/dist
[delete] Deleting: /home/sworddragon/data/ipscan-master/dist/ipscan-linux64-orig.jar

package-linux64-deb-rpm:
[mkdir] Created dir: /home/sworddragon/data/ipscan-master/dist/deb
[copy] Copying 4 files to /home/sworddragon/data/ipscan-master/dist/deb
[copy] Copying 1 file to /home/sworddragon/data/ipscan-master/dist/deb/usr/lib/ipscan
[copy] Copying 1 file to /home/sworddragon/data/ipscan-master/dist/deb/usr/share/pixmaps
[echo] Building .deb package using dpkg...
[exec] dpkg-deb: Fehler: Control-Verzeichnis hat falsche Zugriffsrechte 700 (muss >=0755 und <=0775 sein)
[exec] Result: 2
[delete] Deleting directory /home/sworddragon/data/ipscan-master/dist/deb
[mkdir] Created dir: /home/sworddragon/data/ipscan-master/dist/rpm
[copy] Copying 1 file to /home/sworddragon/data/ipscan-master/dist/rpm
[exec] Baue für die Zielplattform(en): x86_64
[exec] Baue für das Ziel x86_64
[exec] Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.VPanzE
[exec] Ausfüh+ umask 022
[exec] + cd /home/sworddragon/data/ipscan-master/dist/rpm/BUILD
[exec] + exit 0
[exec] + umask 022
[exec] + cd /home/sworddragon/data/ipscan-masrung(%build): /bin/sh -e /var/tmp/rpm-tmp.m9iPZD
[exec] Ausführung(%install): /bin/sh -e /var/tmp/rpm-tmp.NuUQqD
[exec] ter/dist/rpm/BUILD
[exec] + exit 0
[exec] + umask 022
[exec] + cd /home/sworddragon/data/ipscan-master/dist/rpm/BUILD
[exec] + rm -rf /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64
[exec] + mkdir -p /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/lib64/ipscan /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/share/applications /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/share/pixmaps /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/bin
[exec] + cp ../../ipscan-linux64-3.git.jar /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/lib64/ipscan/
[exec] + cp ../../../ext/deb-bundle/usr/share/applications/ipscan.desktop /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/share/applications/
[exec] + cp ../../../resources/images/icon128.png /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/share/pixmaps/ipscan.png
[exec] + echo #/bin/sh
[exec] + echo java -jar /usr/lib64/ipscan/ipscan*.jar
[exec] + chmod a+x /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64//usr/bin/ipscan
[exec] + /usr/lib/rpm/brp-compress
[exec] + /usr/lib/rpm/brp-strip /usr/bin/strip
[exec] + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
[exec] Dateien werden verarbeitet: ipscan-3.git-1.x86_64
[exec] Provides: ipscan = 3.git-1 ipscan(x86-64) = 3.git-1
[exec] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[exec] Prüfe auf nicht gepackte Datei(en): /usr/lib/rpm/check-files /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64
[exec] + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
[exec] unknown, 0: Warning: using regular magic file `/etc/magic'
[exec] Warnung: Rechnername konnte nicht erkannt werden: ubuntu
[exec] Erstellt: /home/sworddragon/data/ipscan-master/dist/rpm/RPMS/x86_64/ipscan-3.git-1.x86_64.rpm
[exec] Ausführung(%clean): /bin/sh -e /var/tmp/rpm-tmp.xpaECE
[exec] + umask 022
[exec] + cd /home/sworddragon/data/ipscan-master/dist/rpm/BUILD
[exec] + rm -rf /home/sworddragon/data/ipscan-master/dist/rpm/BUILDROOT/ipscan-3.git-1.x86_64
[exec] + exit 0
[move] Moving 1 file to /home/sworddragon/data/ipscan-master/dist
[delete] Deleting directory /home/sworddragon/data/ipscan-master/dist/rpm

clean_end:
[delete] Deleting directory /home/sworddragon/data/ipscan-master/ant-bin.linux64

linux64:

BUILD SUCCESSFUL
Total time: 9 seconds
sworddragon@ubuntu:~/data/ipscan-master$ java -jar dist/ipscan-linux64-3.git.jar
Error: Invalid or corrupt jarfile dist/ipscan-linux64-3.git.jar

Discussion

  • Anton Keks
    Anton Keks
    2013-03-12

    Make sure your java is indeed the one you think it is, run:
    java -version

    On the other hand, if you can run the files released by me yesterday (3.2), then the problem is with your machine. Have you checked the filesystem for errors?

     
    • Sworddragon
      Sworddragon
      2013-03-12

      sworddragon@ubuntu:~$ java -version
      java version "1.7.0_15"
      OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-1ubuntu2)
      OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

      The final version 3.2 is working fine.

       
  • Anton Keks
    Anton Keks
    2013-03-12

    You may try to use unzip on the jar file - maybe it will give a hint on what is wrong.

     
  • Sworddragon
    Sworddragon
    2013-03-12

    Here is the log:

     
    Attachments