Posted By:
learner_always
Posted On:
Wednesday, November 29, 2006 06:08 AM
java.lang.NoSuchMethodError: setParameter
at HelloWorld.displayHelloWorld(Native Method)
at Main.main(Main.java:26)
The error mentioned above occurs when i try to get the method reference from the class where native method call exists.
the methods is a public void method.
public void setParameter(String strName)
{
System.out.println("Name is : "+strName);
myName = strName;
}
It just accepts a string variable from the cpp file.But i get this error while running the Main class file.
Can someone help.