1 
2 // This is the template_classes runtime testcase. It checks that SWIG handles a templated
3 // class used by another templated class, in particular that the proxy classes can be used.
4 
5 import template_classes.*;
6 
7 public class template_classes_runme {
8 
9   static {
10     try {
11 	System.loadLibrary("template_classes");
12     } catch (UnsatisfiedLinkError e) {
13       System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
14       System.exit(1);
15     }
16   }
17 
main(String argv[])18   public static void main(String argv[]) {
19 
20     RectangleInt rectint = new RectangleInt();
21     PointInt pi = rectint.getPoint();
22     int x = pi.getX();
23   }
24 }
25 
26