JVM Languages
c_java.txt
Associated article: Calling C Library Routines from Java
Tags: C/C++ JVM Languages
Published source code accompanying the article by Mick Pont in which he presents a technique for calling C library routines directly from Java, saving you the troulbe of rewriting code in Java and gaining portability via Java Virtual Machines. Also see C_JAVA.ZIP.
Calling C Library Routines from Java
by Mick Pont
Listing One
// The Bessel.java file
public class Bessel
{
// Declaration of the Native (C) function
private native double bessely0(double x);
static
{
// The runtime system executes a class's static initializer
// when ...


