Commit 4db9d0d0 authored by Martin Deinhofer's avatar Martin Deinhofer
Browse files

Update README.md

parent 59ca975e
......@@ -32,11 +32,14 @@ Building the project involves two steps
# Run project
Before the application can be run, you must build the native code, then click on *Run/Run*.
You need to provide the library path to the "hello.dll" file, if it is not located in the *current working directory*. This can be done via the VM argument -Djava.library.path. Right-click on the project and select *Run As/Run Configurations/, then select *Java Application*. In the *Main tab*, enter the main class "HelloJNI" and in *Arguments/VM Arguments*, enter ```-Djava.library.path=jni```. Finally click on *Run*.
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*.
This can be done via the VM argument ```-Djava.library.path```. Right-click on the project and select *Run As/Run Configurations*, then select *Java Application*. In the *Main tab*, enter the main class "HelloJNI" and in *Arguments/VM Arguments*, enter ```-Djava.library.path=jni```. Finally click on *Run*.
You should see the output "Hello World!" displayed on the console.
## Command line
```java -Djava.library.path=jni -cp bin HelloJNI```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment