README.md 638 Bytes
Newer Older
1
# Repository for Raspberry Pi + PiFace Control & Display
2
3
4

# Prerequisites

5
See [Remote Development Setup](RemoteDev-Setup.md) tutorial.
6
7
8
9
10

# Build project

Building the project involves two steps

11
1. Connect to the remote device
Martin Deinhofer's avatar
Martin Deinhofer committed
12
2. Build Java + native code on command line
13
```cd jni && make```
14

15
16
# Run project

Martin Deinhofer's avatar
Martin Deinhofer committed
17
Before the application can be run, you must build the native code and provide the library path to the "hello.dll" file, if it is not located in the *current working directory*.
18
This can be done via the VM argument ```-Djava.library.path```.
19

Martin Deinhofer's avatar
Martin Deinhofer committed
20
## Command line
21

Martin Deinhofer's avatar
Martin Deinhofer committed
22
```java -Djava.library.path=jni -cp bin java_exercises8_1_1.HelloJNI```