2 import director_frob.*;
3 import java.lang.reflect.*;
5 public class director_frob_runme
9 System.loadLibrary("director_frob");
10 } catch (UnsatisfiedLinkError e) {
11 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);
16 public static void main(String args[])
18 Bravo foo = new Bravo();
20 String s = foo.abs_method();
21 if (!s.equals("Bravo::abs_method()"))
22 throw new RuntimeException( "error" );
24 Prims prims = new PrimsDerived();
25 java.math.BigInteger bi = prims.callull(200, 50);
26 java.math.BigInteger biCheck = new java.math.BigInteger("150");
27 if (bi.compareTo(biCheck) != 0)
28 throw new RuntimeException( "failed got:" + bi);
32 class PrimsDerived extends Prims {
36 public java.math.BigInteger ull(java.math.BigInteger i, java.math.BigInteger j) {