java.lang.UnsatisfiedLinkError
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   MinGW32_Java
Posted On:   Wednesday, April 10, 2002 09:13 AM

Hello: I get this error message when calling 'Main.class': Exception in thread "main" java.lang.UnsatisfiedLinkError: displayMessage at HelloWorld.displayMessage(Native Method) at Main.main(Main.java:6) class Main { public static void main(String[] args) { HelloWorld hello = new HelloWorld(); hello.displayMessage(); } } And HelloWorld.java: class HelloWorld { public native void displayMessage(); static { System.loadLibrary("HelloWorldImp"); } }    More>>

Hello:


I get this error message when calling 'Main.class':

Exception in thread "main" java.lang.UnsatisfiedLinkError: displayMessage

at HelloWorld.displayMessage(Native Method)

at Main.main(Main.java:6)


class Main

{

public static void main(String[] args)
{
HelloWorld hello = new HelloWorld();

hello.displayMessage();

}

}


And HelloWorld.java:

class HelloWorld

{

public native void displayMessage();

static

{

System.loadLibrary("HelloWorldImp");

}

}

What am I doing wrong?    <<Less
About | Sitemap | Contact