-
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…
-
More on update-alternatives
It appears that update-alternatives is a very handy facility in Debian derivatives for keeping track of the preferred application for specific tasks. This seems to be a much SAFER than Windows way of handling things (i.e., let the application try to set itself as the default handler–a la IE vs. Firefox, whatever audio player you…
