Sunday, June 6, 2010

Java Native Interface

The Java Native Interface (JNI) is a programming framework that allows Java code running in a Java Virtual Machine (JVM) to call and to be called by native applications and libraries written in other languages, such as C, C++. (Wikipedia)

In this example we will be using win32 apis like FindWindow, SetForegroundWindow, GetWindowText, GetWindow, IsWindowVisible & GetDesktopWindow in a Java application using JNI.