http://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/invocation.html