K
Ken Kast
If this is a duplicate post, I apologize. I originally put it out
this morn, but it's never shown up.
I have the following code in my Main class:
public class Main {
static {
System.loadLibrary("kernel32");
}
native private static short GetSystemDefaultLangID();
and in main I have
ID = GetSystemDefaultLangID(); // Get Language ID for this system
When it executes this line in debug mode the following exception is
thrown:
java.lang.UnsatisfiedLinkError: GetSystemDefaultLangID
at Main.GetSystemDefaultLangID(Native Method)
at Main.main(Main.java:92)
All the right directories are in the PATH variable.
I am teaching myself Java and this app is a porting of a working one
originally written in VB .NET, so I know the underlying code is OK.
Can anyone give me a hint what I'm doing wrong?
Thanks.
this morn, but it's never shown up.
I have the following code in my Main class:
public class Main {
static {
System.loadLibrary("kernel32");
}
native private static short GetSystemDefaultLangID();
and in main I have
ID = GetSystemDefaultLangID(); // Get Language ID for this system
When it executes this line in debug mode the following exception is
thrown:
java.lang.UnsatisfiedLinkError: GetSystemDefaultLangID
at Main.GetSystemDefaultLangID(Native Method)
at Main.main(Main.java:92)
All the right directories are in the PATH variable.
I am teaching myself Java and this app is a porting of a working one
originally written in VB .NET, so I know the underlying code is OK.
Can anyone give me a hint what I'm doing wrong?
Thanks.