/* * Created on Feb 19, 2008 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ /** * @author lingyun.shi * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class TestQuantlib { static { try { System.loadLibrary("TestQuantLib"); //System.out.println("FTXQuantLib loaded."); } catch (UnsatisfiedLinkError e) { System.out.println("Unnable to load TestQuantLib." + e.getMessage()); } } public static void main(String[] args) { TestQuantlib tq = new TestQuantlib(); int[] intarray = new int[2]; intarray[0]=1; intarray[1]=2; tq.calcDiscountFactor(args[0], 5, intarray); System.out.println("finished"); } public native boolean calcDiscountFactor(String jniLog, int numberOfDays, int[] zeroRateTenorArray); }