JNative can only live with your donations and advertisement


New features on JNative v1.0

Tuesday 24 October 2006.
 
This article presents some of the features long asked by many users. I added them to the 1.0 release. With no particular order let’s say :
-  Ability to load the library from any directory,
-  Linux callbacks,
-  Multi-threading

Loading the native side

1. Put the library in the PATH:

2. Use the VM option mechanism -Djnative.loadNative=value

3. Use the System properties

This works exactly the same way that previous chapter, but instead in your code you’ll have to add to the System properties the same entry, for example you want to use the lib from a known directory, but some times the lib can be elsewhere :

Debug

JNative can print some useful information when something goes wrong. The same way of loading native side you can use the System property jnative.debug to enable this feature.


java -Djnative.debug=true your.Class
or

System.setProperty("jnative.debug", "false");
By default debug is turned off.

THE END

To be continued...

With the hope JNative will help you. I do not earn any money for this product, so don’t ask it to be as good as commercial ones. In particular, I cannot be responsible of any damage done by direct or indirect (mis)use of JNative.

Share the knowledge : it grows !

Reply to this article