hi

In cygwin,i couldn't compile the following java file.

package jni.meaningOfLife;

import ptolemy.data.expr.Utilityfunctions;

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;

}

 

Error:

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<library>;

^

 

JnimeaningOfLifeImeaningOfLife.java:27: cannot resolve symbol:

symbol: variable UtilityFunctions

Location : class jni.meaningOfLife.JnimeaningOfLifeImeaningOfLife

UtilityFunctions.loadLibrary<"JnijnimeaningOfLifeImeaningOfLife">;

^

Please let me know whats the problem?

-karthik venkatesh



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]

Reply via email to