Contenu connexe
Similaire à Jni – java native interface (12)
Plus de Jernej Virag (16)
Jni – java native interface
- 1. JNI – Java Native Interface
How to persuade my Java application to talk
to evil evil C native code
- 2. • WHAT?
• WHY?
• WHY NOT?
• THE ACTUAL CODE
• GOODIES
- 3. Er… WHAT?
Java applications
Native applications
- 5. But, but…
WHY?
Allows native API function calls
- 6. But, but…
WHY?
Usage of existing native libraries
- 7. But, but…
WHY?
Execution of time-critical code
- 8. OK, so
WHY NOT?
Use of JNI should be avoided
whenever reasonably possible!
- 20. Other things to know
• Forget about garbage collection
• Java JVM is nazi about its memory space