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:

About | Sitemap | Contact