diff options
Diffstat (limited to 'Examples/test-suite/java/typemap_out_optimal_runme.java')
-rw-r--r-- | Examples/test-suite/java/typemap_out_optimal_runme.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Examples/test-suite/java/typemap_out_optimal_runme.java b/Examples/test-suite/java/typemap_out_optimal_runme.java new file mode 100644 index 000000000..8a87f0c4b --- /dev/null +++ b/Examples/test-suite/java/typemap_out_optimal_runme.java @@ -0,0 +1,21 @@ + +import typemap_out_optimal.*; + +public class typemap_out_optimal_runme { + + static { + try { + System.loadLibrary("typemap_out_optimal"); + } catch (UnsatisfiedLinkError e) { + 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); + System.exit(1); + } + } + + public static XX x = null; + public static void main(String argv[]) { + XX.setDebug(false); + x = XX.create(); + } +} + |