JNI Section Index | Page 3
Implications of using "-Xbootclasspath" - What are the common problems encountered when one decides to use the "-Xbootclasspath"? and any solutions?
There's an excellent article on Using the BootClasspath - Tweaking the Java Runtime API at javageeks.com: http://www.javageeks.com/papers/BootClasspath/BootClasspath.pdf.more
How can i create standalone Java applications that can be launched just like any other Mac OS application?
You can use JManager API or JBindery to do so. Here's an article that shows you how to create a wrapper program around a Java application: http://developer.apple.com/techpubs/java/MacOSandJava/JM...more
If you want to call Mac OS C code from your Java code, there are currently two mechanisms for doing so: JDirect2 and the Java Native Interface (JNI). Each has advantages and disadvantages. Genera...more
Added Lock() and Unlock() function pointers to the basic JAWT structure in jawt.h. These are needed to handle locking of the AWT without requiring a native Canvas. This is useful particularly in...more
Merant has an article at: Calling COBOL From Java Using the Java Native Interface
Am using -Xbootclasspath to add my custom jars, But this prevents loading custom JNI libraries from my user directory. Is there a work around?
That is the intended behavior. All system classes will only lookup shared libraries in $JAVA_HOME/bin. If you do need to load custom libraries for the system classes, there are several choices. ...more
Borland Developer Support has an article on how to do this: How can I run my Java program as a native executable?more
IBM's VisualAge Micro Edition includes the J9 VM - http://www.embedded.oti.com/learn/vaesvm.html ChaiVM from HP supports JNI. The 'C Virtual Machine,' VM for Consumer Electronics from SUN. more
Porting Guide for the CDC and the Foundation Profile from SUN has a chapter on "C Debugging with GDB".
Debugging JNI primitives remotely using GDB on a Neutrino target Debugging JNI primitives locally using WinDbg on a PC platform more
My C program opens a pipe and gets a file descriptor. Then it start a JVM with JNI and sends the file descriptor to the Java side. Is it now possible for me to write data to this pipe using the file descriptor from the Java code?
Unfortunately, the java.io class that handles file descriptors (java.io.FileDescriptor) doesn't allow you to construct a new one from an integer (which is really what you want). So, the only thin...more
What is necessary to have an applet call a native method? DLL installation, code signing, specific security permissions needed, etc.
After more tries I solved the problem. I used your posted response about such a thing for Netscape. But was dificult to use that answer because Netscape and Explorer security mechanisms differ so ...more
// @(#)Sum.java 1.1 01/05/10 // // Compute 16-bit checksums for a list of files, in the style of the BSD "sum" // command. Uses NIO mapped byte buffers for speed. import java.io.*; import java....more
JDK 1.4 has introdced the concept of direct buffers. Where can i get more information and/or samples for manipulating direct buffers?
JNI has been enhanced in v 1.4 to reflect a new feature of the java.nio package: direct buffers. The contents of a direct buffer can, potentially, reside in native memory outside of the ordinary ...more
Yes, The Tcl/Java project currently has two packages, Jacl and Tcl Blend. Jacl, which stands for Java Command Language, is a Java implementation of Tcl 8.x. Tcl Blend is a package for Tcl 8.x that...more