[749] in java-interest
Trying javah on WinNT
daemon@ATHENA.MIT.EDU (Scott Stubbs)
Tue Jul 18 16:44:18 1995
Date: Tue, 18 Jul 1995 13:29:19 -0500
To: java-interest@java.Eng.Sun.COM
From: sstubbs@server.iadfw.net (Scott Stubbs)
Has anyone worked with implementing native methods on WinNT? I have a
problem getting javah to generate headers when I include a 'package'
statement. Here is my sample class:
//--begin-test.java-----
import java.util.Linker;
package hello;
public class test {
static {
Linker.loadLibrary("test");
}
public native void sayHello();
}
//--end-test.java-------
Here is the following dialog I get at the command prompt:
d:\test>javac test.java
d:\test>javah test
test: no such class
d:\test>
If I remove the 'package hello;' statement, javah generates the headers ok.
But if I put the line back in the source file, I get the 'test: no such
class' error. Anyone?
TIA...
Scott Stubbs
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com