capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.59k stars 1.56k forks source link

5.0.1: java binding build fails with `zip END header not found` #2187

Open kloczek opened 1 year ago

kloczek commented 1 year ago

I cannot diagnose this issue. May I ask for some help? 🤔

+ /usr/bin/make -O -j48 V=1 VERBOSE=1 PYTHON2=/usr/bin/python3 CFLAGS=CFLAGS
cd ../ && /usr/bin/python3 const_generator.py java
Generating bindings for java
Generating bindings for java
cd capstone && javac -classpath /usr/share/java/jna.jar Capstone.java Arm_const.java Arm64_const.java Mips_const.java X86_const.java Xcore_const.java Ppc_const.java Sparc_const.java Sysz_co
Note: Capstone.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
cd . && jar cf ./capstone.jar capstone/*.class
javac -d . -classpath "/usr/share/java/jna.jar:./capstone.jar" TestBasic.java\
        TestArm.java TestArm64.java TestMips.java TestX86.java TestXcore.java\
        TestPpc.java TestSparc.java TestSystemz.java TestM680x.java
error: error reading ./capstone.jar; zip END header not found
make: *** [Makefile:47: tests] Error 2
Skyerhw commented 2 months ago

Have you solved this problem? Already have a compiled capstone jar? If so, can you share it?

kloczek commented 2 months ago

Nope