An open API service indexing awesome lists of open source software.

https://github.com/mrtrizer/jnihelloworld

Hello world, using Java with JNI and C++.
https://github.com/mrtrizer/jnihelloworld

Last synced: 7 months ago
JSON representation

Hello world, using Java with JNI and C++.

Awesome Lists containing this project

README

          

This project is a simple example of using JNI. To build package you need install jdk and g++ first.
Paths to java, javah, javac and g++ have to be in your PATH variable.
Also you have to set JDK_PATH to point on jdk.
For example:

env JDK_PATH="/usr/lib/jvm/java-7-openjdk-amd64" make

Use run.sh to run example after build.
The run script consists of one command:

java -Djava.library.path=bin/ -jar bin/nativewrapper.jar