invoke.java 321 B

12345678910111213141516171819
  1. // Test to make sure the minimal invocation works.
  2. public class invoke
  3. {
  4. public static native int val ();
  5. static
  6. {
  7. System.out.println ("trying...");
  8. System.loadLibrary ("invoke");
  9. System.out.println ("loaded");
  10. }
  11. public static void main (String[] args)
  12. {
  13. System.out.println (val ());
  14. }
  15. }