Commit 59ca975e authored by Martin Deinhofer's avatar Martin Deinhofer
Browse files

Update added running of project

parent 0ad431ca
......@@ -30,6 +30,14 @@ Building the project involves two steps
* Command line:```cd jni && make``` or
* Double click on *jni/Build Targets/all*
# 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*.
You should see the output "Hello World!" displayed on the console.
Supports Markdown
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