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++.
- Host: GitHub
- URL: https://github.com/mrtrizer/jnihelloworld
- Owner: mrtrizer
- Created: 2016-02-07T17:55:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T17:55:42.000Z (over 10 years ago)
- Last Synced: 2025-03-06T01:14:44.663Z (over 1 year ago)
- Language: Makefile
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- 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