Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

native methods

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I am trying to get native methods to work from an Application, but am getting runtime errors.

I get a big stackTrace, but the general idea is:
Exception occurred during event dispatching:

java.lang.UnsatisfiedLinkError: MessageBox

So it seems my import is not working, I used this:
...
/** @dll.import("USER32") */
public class WindowsIntegrator{
...
//===========================================================================
// Method throws an error because it has not imported in the right classes
//===========================================================================
private static native void
MessageBox(int hwndOwner, String
text, String title, int fuStyle);
...


Is this because it is not running from a jar? I am just trying to test it in JBuilder. Any ideas?

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top