Browse Prior Art Database

Dynamic Java Native Interface Code Extraction

IP.com Disclosure Number: IPCOM000020414D
Original Publication Date: 2003-Nov-20
Included in the Prior Art Database: 2003-Nov-20

Publishing Venue

IBM

Abstract

Java provides a way to write code once and run it on different systems. Unfortunatelly, it does not provide all the functions needed in some advanced applications, like trying to ping an IP address. In those cases, the developer has to rely on native code (code written for the specific operating system) to achieve the desired goal. This introduces several complications and restrictions: - problems to upgrade the native code dynamically (without restarting the Java Virtual Machine - JVM for short) - native code can only be loaded once in the JVM if multiple ClassLoaders are being used and it can only be at one version - installation and deployment gets more complicated due to the added native code and operating system dependency Disclosed here is an algorithm to solve the issues above, specifically on a distrubed system which needs to be highly available.