hi
When i execute the following java file,i m getting errors which i have stated at the end of this page.
package jni.meaningOfLife; import ptolemy.data.expr.Token; import java.io.File; /* The class that interface the native function call * @author autogenerated file - by V. Arnould.TRT */ public class JnimeaningOfLifeImeaningOfLife { /* The default constructor * @author autogenerated - by V. Arnould.TRT */ public JnimeaningOfLifeImeaningOfLife(){} /* The loading of the native library */ static { String library = "jni"+ File.separator + "meaningOfLife"+ File.separator + "JnijnimeaningOfLifeImeaningOfLife"; try { UtilityFunctions.loadLibrary(library); } catch (java.lang.UnsatisfiedLinkError ex) { System.out.println("Warning, UtilityFunctions.loadLibrary('" + library + "' failed"); ex.printStackTrace(); UtilityFunctions.loadLibrary("JnijnimeaningOfLifeImeaningOfLife"); } } public native double jnimeaningOfLifeImeaningOfLife(/*foo*/) throws SecurityException; /** Send the result of the native library. * This method is called by the native code * @author autogenerated - by V. Arnould.TRT */ public void sendResults() { } /** Call the native function in the native library. * This method is called by the GenericJNIActor on fire() * @author autogenerated - by V. Arnould.TRT */ public double fire() { _output = jnimeaningOfLifeImeaningOfLife(); return _output; } ///////////// public fields public double _output;
}
In cygwin,
$javac JnimeaningOfLifeImeaningOfLife.java
Errors:
JnimeaningOfLifeImeaningOfLife.java:3: package ptolemy.data.expr does not exist
import ptolemy.data.expr.UtilityFunctions;
^
JnimeaningOfLifeImeaningOfLife.java:23: cannot resolve symbol:
symbol: variable UtilityFunctions
Location : class jni.meaningOfLife.JnimeaningOfLifeImeaningOfLife
UtilityFunctions.loadLibrary;
^
JnimeaningOfLifeImeaningOfLife.java:27: cannot resolve symbol:
symbol: variable UtilityFunctions
Location : class jni.meaningOfLife.JnimeaningOfLifeImeaningOfLife UtilityFunctions.loadLibrary("JnijnimeaningOfLifeImeaningOfLife");
^
Please clarify me
Karthik
Trailblazer Narain Karthikeyan. Know more about him ‘n his life. Stay in the loop with Tata Racing! ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]