findclass2.java 338 B

12345678910111213141516171819202122232425
  1. // Test that FindClass initializes the class.
  2. public class findclass2
  3. {
  4. public static class inner
  5. {
  6. static
  7. {
  8. System.out.println("hello");
  9. }
  10. }
  11. public static native void searchClass();
  12. static
  13. {
  14. System.loadLibrary("findclass2");
  15. }
  16. public static void main(String[] args)
  17. {
  18. searchClass();
  19. }
  20. }