It is a Java inner class problem and the code is shown below:
public class Load {
/*
static { //load
System.loadLibrary("lvb");
}*/
public class FILTER_T{
HP05_T hp;
LP40_T lp;
NOTCH50_T notch;
// Load.FILTER_T.HP05_T hp;
// Load.FILTER_T.LP40_T lp;
// Load.FILTER_T.NOTCH50_T notch;
public class HP05_T {
public int[] buf;
public long y1;
public long y2;
public int ptr;
}
public class LP40_T {
public int[] buf;
public int ptr;
}
public class NOTCH50_T {
public int[] buf;
public int ptr;
}
}
public native void func1(FILTER_T filter);
public native int func2(FILTER_T filter, int in);
public native int[] func3(int a,int[] in,FILTER_T filter);
public static void main(String[] args) {
Load load = new Load();
load.FILTER_T ff = new load.FILTER_T();
load.func1(ff);
load.func2(ff, 120);
}
}
In line
load.FILTER_T ff = new load.FILTER_T();
there is a compile error:
error: package
load
does not exist
I wonder if any one know the problem and the way to fix it.