Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • Using Native Data Structures in JNI

    Write Efficient Java Apps Using Native Data Structures with JNI

    February 9, 2007
  • Linking a static library to Java using JNI

    Beginning JNI Linux tutorial for Netbeans Once I had accomplished the above with complete success, I extended the experiment by linking my static library (.a) to the dynamic library, and calling the static library function from the dynamic library function. My HelloWorldNative.h:/* DO NOT EDIT THIS FILE – it is machine generated */#include <jni.h>/* Header…

    February 9, 2007
  • Link java to a static library.

    See last post, assume testlib has a void hello(void) function. Step 1: Create a wrapper class.public class TestLibWrapper { public static native void hello(); static { System.loadLibrary(“testlib”); }} Step 2: Compile wrapper class.javac TestLibWrapper.java Step 3: Run javah to create C header and stub file.javah TestLibWrapper Step 4…

    February 8, 2007
←Previous Page
1 … 292 293 294 295 296 … 312
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress