Ecosyste.ms: Awesome
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: about 6 hours ago
JSON representation
Hello world, using Java with JNI and C++.
- Host: GitHub
- URL: https://github.com/mrtrizer/jnihelloworld
- Owner: mrtrizer
- Created: 2016-02-07T17:55:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T17:55:42.000Z (almost 9 years ago)
- Last Synced: 2023-02-26T16:11:36.402Z (over 1 year ago)
- Language: Makefile
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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