开发者

create a simple dll file with JNI

Im trying to create a simple dll file.Im following the tutorial

http://java.sun.com/docs/books/jni/html/start.html

when i try to compile the c program i get following error :

Warning W8057 HelloWorld.c 10: Parameter 'env' is 开发者_开发技巧never used in function Java_He lloWorld_print Warning W8057 HelloWorld.c 10: Parameter 'obj' is never used in function Java_He lloWorld_print

im using Borland C++ Compiler 5.5 i used the following command to compile the c program

bcc32 -WD HelloWorld.c


That's because most JNI functions don't need to reference the env, and some don't need to reference the object. In other words, ignore it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜