This complete sample provides a Java class that calls a function in a native language library.