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/>
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/>