JNI Section Index
You can call Runtime.exec() and execute rundll32.exe with a few parameters. rundll32.exe shell32.dll,SHExitWindowsEx (to close the session) rundll32.exe shell32.dll,SHExitWindowsEx 2 (to reboot...more
Debugging integrated Java and C/C++ code illustrates the two basic approaches using JNI (call C/C++ code from java, embed jvm in C/C++ code) and ways to debug both approaches using JPDA (jdb) and ...more
Tools for Native Exe generation. What tools can i use to generate a native executable from my *.class files?
These tools fall into 2 catagories. Those that package interpreted code into exes (wrappers) and those that actually compile the java code to machine code (native compilers). The second produces f...more
How can i access java from Python (and the other way around)? Are there any JNI wrappers which can bridge the gap between the two?
JPE (Java-Python Extension) is an open-source effort for seamless inter-operability between Java and Python. Java-Python Extension main site JPE @ SourceForge JPython.org more
JavaWorld has a good article with sample app shows how to start a JVM from a legacy application, create Java objects from a legacy application, call back legacy code from Java using a thread-safe ...more
How can i embed Mozilla's ActiveX Plugin and/or IE Plugin inside my AWT/SWING application using JNI?
http://www.nothome.com/IECanvas/ has sample code for embedding both IE and Mozilla ActiveX controls.
Is there a tutorial or sample for writing a COM Object and also JNI code to call it from a java client?
Earthweb has a tutorial - Access COM Via Java -- A Tutorial
Is there a cross-platform alternative to COM? Are there JNI wrappers such that i can use java to write the components?
There is a XPCOM framework from the Mozilla Open Source project that offers an alternative to COM. You can use BlackConnect to write XPCOM components in java.more
Here's the link: JNI Enhancements Introduced in Version 1.4 of the JavaTM 2 SDK
The Java/Win32 integration project (Jawin) is a free, open source architecture for interoperation between Java and components exposed through Microsoft's Component Object Model (COM) or through Wi...more
Is there a sample Java application built using MacOS X's ProjectBuilder that calls native code through JNI?
Yes. Use http://www.held-mueller.de/JMatLink/.
how to create object of a C++ class in my servlet ? i am facing a problem regarding call functions from C++ files. Actually am developing a SMS sending application using java servlets & Nokia datas...more
Yes, but you have to use JNI. See the JNI FAQ for help on using JNI. Also, see your servlet engine's documentation for help on how to set up the environment (environment variables, where to plac...more
See http://cscene.org/CS4/CS4-04.html for a JNI tutorial with source code which verifies a user's password.