Embedding and loading a JNI library from a jar

Posted by Tom on March 9th, 2009 — in Java, Programming

When I searched for ways to load a JNI library from a jar there were numerous hints of how to do it, but no code that I could find. So here’s my solution:

import java.net.URL; import java.util.zip.ZipFile; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream;

public abstract class UnixDomainSocket {

    static {         try {             // get the class object for this class, and get the location [...]



Warning: include(/home/tlrobinson/tlrobinson.net/_footer-analytics.php) [function.include]: failed to open stream: No such file or directory in /home/tlrobinson/tlrobinson.net/blog/wp-content/themes/clean-look-150/footer.php on line 13

Warning: include() [function.include]: Failed opening '/home/tlrobinson/tlrobinson.net/_footer-analytics.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/tlrobinson/tlrobinson.net/blog/wp-content/themes/clean-look-150/footer.php on line 13