https://github.com/caplin/jnijnaexamples
Quick comparison of JNA and JNI
https://github.com/caplin/jnijnaexamples
Last synced: 5 months ago
JSON representation
Quick comparison of JNA and JNI
- Host: GitHub
- URL: https://github.com/caplin/jnijnaexamples
- Owner: caplin
- Created: 2014-11-27T15:19:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-27T15:42:47.000Z (over 10 years ago)
- Last Synced: 2024-04-14T09:42:14.131Z (about 1 year ago)
- Language: C
- Homepage: http://blog.caplin.com/2014/11/27/jnajni/
- Size: 1.08 MB
- Stars: 3
- Watchers: 18
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Comparison of JNI and JNA
==============Even though the examples would work on all platforms, the Makefile only works on Linux and OSX. Therefore those are the only supported platforms
This repository contains two subprojects, one for JNI, and one for JNA. The use cases implemented are
- generate a random number in C and print the result from Java
- populate a list of files in a directory, pass it to Java and print the listTo compile and run the examples the following steps are necessary:
- set JAVA_HOME
- cd jna or cd jni
- make run