| 1 |
This has been tested with OpenJDK version 6 & 7 on Ubuntu-12.04 and |
| 2 |
Arch Linux-3.11, 64-bit. |
| 3 |
|
| 4 |
- OpenJDK is required to compile and run this test code. |
| 5 |
For example, install OpenJDK 6 with: |
| 6 |
|
| 7 |
$ sudo apt-get install openjdk-6-jre-headless openjdk-6-jdk |
| 8 |
|
| 9 |
- Java Native Access is required to run the code, you can install it with: |
| 10 |
|
| 11 |
$ sudo apt-get install libjna-java |
| 12 |
|
| 13 |
- To compile and run this Java test code: |
| 14 |
|
| 15 |
$ make |
| 16 |
$ ./run.sh |
| 17 |
|
| 18 |
|
| 19 |
This directory contains some test code to show how to use Capstone API. |
| 20 |
|
| 21 |
- TestBasic.java |
| 22 |
This code shows the most simple form of API where we only want to get basic |
| 23 |
information out of disassembled instruction, such as address, mnemonic and |
| 24 |
operand string. |
| 25 |
|
| 26 |
- Test<arch>.java |
| 27 |
These code show how to retrieve architecture-specific information for each |
| 28 |
architecture. |