Re: Is there a JNI Mailing list? [john.boyer@xxxxxxxxxxxxxxxxx: Telling Java where to find a native library]

  • From: "QuentinC" <webmaster@xxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 23 Aug 2010 19:15:49 +0200

Hello,
JNI, I may help.
1 - Very important : if iou are on linux or another unix like, throw OpenJDK directly to trash and install the veritable JDK from sun. Foreget OpenJDK for ever. I'm sure many of your problems come from there. That buggy OpenJDK has problems with audio, problems with SQL, problems with files, and problems with many other java API. 2 - System.loadLibrary expect a library name without extension, in order to be more portable. The .so suffix is automatically added, as well as the .dll suffix on windows. 3 - Is the library compiled ready for use by java ? it should have exported functions like java_full_class_name_method_name. If not, you will ahve to write a wrapper or use JNA.


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: