[946] in java-interest
Native Method Woes
daemon@ATHENA.MIT.EDU (ISSI )
Tue Aug 15 20:24:03 1995
Date: Tue, 15 Aug 1995 07:59:26 -0700
From: issi-tn@ix.netcom.com (ISSI )
To: java-interest@java.sun.com.I.am.in.the.process.of.testing.out.native.methods,
but.I.can't@ix.netcom.com
initial tester program to run. All that my java main method does is
call a native C method; the C dll links in fine when I run the
interpreter, but I get a message that I can't use a static reference to
my native method. Here's my code:
class Test {
static {
Linker.loadLibrary("javademo");
}
public static void main (String args[]) {
LoadMain();
}
public native void LaunchMain();
}
Thanks,
Stephen Owens
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com