Web Hosting Talk







View Full Version : Java Native Methods Error


ruski
08-11-2006, 07:16 AM
Hey,

Been practising at making java native methods using a dll which has a project which just prints out hello world.

But when i run the java script I get this error:


Exception in thread "main" java.lang.UnsatisfiedLinkError: NativeTest
at Native.NativeTest(Native Method)
at Native.main(Native.java:11)


This is my java code:


public class Native
{
public native void NativeTest();
static
{
System.loadLibrary("Project1");
}
public static void main(String[] args)
{
Native nat = new Native();
nat.NativeTest();
}
}


Any help would be great
Thanks