capstone/bindings/java
mquigley 85dffaeb09 #1246 - Fix Java bindings to use pointers instead of longs (#1516)
Previously, a long was used instead of a pointer in the JNA binding library.
This would work until the allocated pointers exceeded 32-bits. On modern JVMs,
allocations may produce pointers in excess of 32-bits which would result in
invalid memory access errors.

This also updates the binding version to 5.0.
2019-07-11 17:35:27 +08:00
..
capstone #1246 - Fix Java bindings to use pointers instead of longs (#1516) 2019-07-11 17:35:27 +08:00
.gitignore initial commit for java binding 2013-11-26 22:28:41 -06:00
Makefile introduce PYTHON2 and PYTHON3 variables in the makefiles (#1236) 2018-08-29 12:26:53 +08:00
README java: rename Test.java to TestBasic.java 2015-06-03 22:18:26 +08:00
run.sh M680X: Target ready for pull request (#1034) 2017-10-21 21:44:36 +08:00
TestArm.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
TestArm64.java arm64: sync with LLVM 7.0.1 2019-04-10 14:17:08 +08:00
TestBasic.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
TestM680x.java M680X: Use same output style as other archs (#1439) 2019-03-22 11:07:15 +08:00
TestMips.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
TestPpc.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
TestSparc.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
TestSystemz.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00
TestX86.java Update TestX86.java (#1208) 2018-07-13 15:52:19 +07:00
TestXcore.java java: Rename Test class to TestBasic 2016-09-04 12:39:20 +09:00

This has been tested with OpenJDK version 6 & 7 on Ubuntu-12.04 and
Arch Linux-3.11, 64-bit.

- OpenJDK is required to compile and run this test code.
  For example, install OpenJDK 6 with:

       $ sudo apt-get install openjdk-6-jre-headless openjdk-6-jdk

- Java Native Access is required to run the code, you can install it with:

       $ sudo apt-get install libjna-java

- To compile and run this Java test code:

       $ make
       $ ./run.sh


This directory contains some test code to show how to use Capstone API.

- TestBasic.java
  This code shows the most simple form of API where we only want to get basic
  information out of disassembled instruction, such as address, mnemonic and
  operand string.

- Test<arch>.java
  These code show how to retrieve architecture-specific information for each
  architecture.