jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
JNI FAQ Home Page

FAQ Manager is guru Davanum Srinivas PREMIUM.

The Java Native Interface (JNI) permits you to integrate native programs with Java and this FAQ should help you do it. Leverage the existance of legacy libraries and move to Java without rewriting everything.

What's New

What is JAWIN?
Java:API:JNI
Davanum Srinivas PREMIUM, Jan 6, 2002
The Java/Win32 integration project (Jawin) is a free, open source architecture for interoperation between Java and components exposed through Microsoft's...
Is there a sample Java application built using MacOS X's ProjectBuilder that calls native code through JNI?
Java:API:JNI
Davanum Srinivas PREMIUM, Jan 6, 2002
http://developer.apple.com/samplecode/Sample_Code/Java/JNISample.htm
How can i initiate a shutdown (CTRL+ALT+DEL) without using JNI on my Windows box?
Java:API:JNI
Davanum Srinivas PREMIUM, Jan 6, 2002
You can call Runtime.exec() and execute rundll32.exe with a few parameters. rundll32.exe shell32.dll,SHExitWindowsEx (to close the session) rundll32.exe...

Is there a JNI layer over the MATLAB engine that i could use?
Java:API:JNI
Davanum Srinivas PREMIUM, Jan 6, 2002
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 datasuite...
Java:API:JNI
Christopher Schultz PREMIUM, Jan 6, 2002
Ugh. This gets ugly, since you're not just calling discrete API functions from a Java wrapper (which is the case most of the time with JNI). The...
Is it possible to make calls to C or C++ methods from a servlet?
Java:API:Servlets, Java:API:JNI
Alex Chaffee PREMIUM, Dec 23, 2001
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...
How to check for the validation of a Unix login username and password from Java?
Java:API:Servlets, Java:API:JNI
Alex Chaffee PREMIUM, Dec 23, 2001
See http://cscene.org/CS4/CS4-04.html for a JNI tutorial with source code which verifies a user's password.
Can i embed ActiveX controls in SWT?
Java:API:JNI
Davanum Srinivas PREMIUM, Dec 15, 2001
Yes. See ActiveX Support In SWT.
What is SWT? How does it work?
Java:API:JNI
Davanum Srinivas PREMIUM, Dec 15, 2001
SWT is the software component (part of the Eclipse IDE Framework) that delivers native widget functionality for the Eclipse platform in an operating...
What are the basic techniques for debugging mixed java and C++ code?
Java:API:JNI
Davanum Srinivas PREMIUM, Dec 15, 2001
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...
EJB-JNI-Legacy Integration(C++ API) We have exisitng System in C++.We want to use Existing in the intranet/internet. We are using JNI to use existing System. And then we are calling JNI Classes in...
Java:API:EJB, Java:API:JNI
Bozidar Dangubic PREMIUM, Dec 9, 2001
EJBs are suppose to be portable between different app server who comply with the Sun's specifications for compliant EJB containers. Because of this reason,...
Anyone know of a way of marking a Java thread as being a demon if it was "created" through the JNI AttachCurrentThread call?
Java:API:JNI
Davanum Srinivas PREMIUM, Dec 9, 2001
JDK 1.4 has a new method AttachCurrentThreadAsDaemon.
Where can i find more information on the new Signal Chaining mechanism that has been implemented in JDK 1.4?
Java:API:JNI
Davanum Srinivas PREMIUM, Nov 18, 2001
http://java.sun.com/j2se/1.4/docs/guide/vm/signal-chaining.html has the details. More details can be found at http://developer.java.sun.com/developer/...
Is there a sample that illustrates Non-Blocking Socket I/O in JDK 1.4?
Java:API:JNI
Davanum Srinivas PREMIUM, Nov 18, 2001
A sample server that illustrates Non-Blocking Socket I/O can be found at http://www.owlmountain.com/tutorials/NonBlockingIo.htm.
Where can i get on overview of the New I/0 Functionality for JDK 1.4?
Java:API:JNI
Davanum Srinivas PREMIUM, Nov 18, 2001
John Zukowski has an excellent article: New I/0 Functionality for JavaTM 2 Standard Edition 1.4
How can i use JNI with iPlanet?
Java:API:JNI
Davanum Srinivas PREMIUM, Nov 17, 2001
Here's an how-to from developer.iplanet.com: Calling Native Methods From Server-Side Java.
Can i write a Java Application with Irregular shaped Windows? Similar to the ones i used to with Win32 Region API?
Java:API:JNI
Davanum Srinivas PREMIUM, Nov 16, 2001
Yes, This is possible. Use the Region API from http://www.l2fprod.com/software/skinlf/region.html.
Are there JVM's that work as a true 64-bit application?
Java:API:JNI, Java:Language
Davanum Srinivas PREMIUM, Oct 28, 2001
IBM's SDK for Windows on Itanium SolarisTM-SPARCTM platform edition of J2SDK 1.4.0 CACAO is 64 bit just-in-time (JIT) compiler for Java
I cannot wait for the new JDK1.4's New I/O APIs. Is there an alternative that i can use right now?
Java:API:JNI
Davanum Srinivas PREMIUM, Oct 14, 2001
Yes. The alternative is to use NBIO: Nonblocking I/O for Java.
Can i setup Tomcat to run inside the web server process itself (on Netscape/IIS?), instead of running it as a separate process. Do there something available i can use or do i have to write my own JNI code...
Java:API:JNI, Java:API:Servlets:Products:Tomcat, Tools:AppServer:WebServer:Tomcat:Installation:Web Server Integration
Davanum Srinivas PREMIUM, Oct 14, 2001
Yes. The dirty work has already been done for you. More information can be found at TOMCAT - In-Process HowTo.
« previous beginning next »


Ask A Question



Related Links

JNI Forum

JNI Specification

Sun Tutorial Trail: Java Native Interface

JavaWorld JNI Tutorial

Sun's JNI FAQ

Wish List
Features
About jGuru
Contact Us

 



The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers