summaryrefslogtreecommitdiffstats
path: root/Tests/JavaJavah/C.java
blob: 54b1be205cf2309e11753dc42b27f9b8619fe752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class C
{
  public C()
    {
    }

    public native void printName();

    static {
        try {

            System.loadLibrary("B");

        } catch (UnsatisfiedLinkError e) {
            System.err.println("Native code library failed to load.\n" + e);
            System.exit(1);
        }
    }
}