How can I write JNI code which can run on JDK1.1.8, JDK1.2 and MS-JVM?

Davanum Srinivas

Use LoadLibrary/GetProcAddress to dynamically get the JNI entry points (on Win32 platform) instead of statically binding to the JNI libraries. On Unix you can use dlopen/dlsym which are equivalent to LoadLibrary/GetProcAddress.

There is an article on CodeGuru which explains the process: http://codeguru.earthweb.com/java/articles/216.shtml

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact