JNI Section Index | Page 14
Are there any good resources on the web to learn about JNI?
Depending upon what you are looking for, try out some of the following:
Roedy Green maintains a useful resource at http://mindprod.com/jni.html
JavaWorld Tip 17: http://www.javaworld.com/javatip...more
What is JNI?
JNI stands for Java Native Interface. It is the way to integrate your Java programs with legacy C/C++ code, including the ability to embed a JVM within your native applications.
Where can I get the code examples from the Rob Gordon JNI book?
The source code for Essential JNI book is available from ftp://ftp.prenhall.com/pub/ptr/professional_computer_science.w-022/gordon/essential_jni/ejni_ex.zip.more
Where can I get the code examples from the Sheng Liang JNI book?
The source code for The Java Native Interface book is available from http://java.sun.com/docs/books/jni/.
What is Java 2 AWT Native Interface (JAWT) and how can I use it for native rendering?
There is an article at JavaWorld that explains this process:
http://www.javaworld.com/javaworld/javatips/f_jw-javatip86.html
more
How can i embed a Java VM inside my C/C++ application?
There is an article at Java CodeGuru that explains this process: http://codeguru.earthweb.com/java/articles/216.shtml.
How can i embed ActiveX controls inside a Java Application?
There is an article at The Code Project which explains how: http://www.codeproject.com/java/javacom.asp.
How can I use JNI in an applet?
Applets need to be trusted in order to execute the necessary System.loadLibrary() method. The PolicyManager will check for the RuntimePermission to loadLibrary.<library name>. This is separa...more
How do I cut and paste a Java Image to a an external program like Microsoft Paint?
As of today - no you can't :( in 100% pure Java. That is
because of the following bug and other related
bugs -
http://developer.java.sun.com/developer/bugParade/bugs/4040183.html
You can do that...more
How can I load a DLL (native library) and run something inside the DLL from a Servlet using JNI on JavaWebServer in Windows NT?
Is there anything special about JavaWeb Server so only JNI is not working?
Probably not, all you have to do is to learn how to use JNI. I used "Essential JNI" by
Rob Gordon.
What good books are there on JNI?
Besides the free online tutorial on the Java Native Interface from Sun, there are only two books about the topic. Essential JNI from Prentice Hall by Rob Gordon, with the other being The Java Nati...more
Can I write hardware interrupt handlers in Java using pure Java, JNI, or something else?
Using Java no, but using JNI you can write the same in language like c or c++, because currently only these two languages are supported for native interface in java.