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

Answers


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.


Need Your Help

Byte order when using Cairo in PyGame (SDL)

python sdl pygame cairo pycairo

I currently have some code that draws using pycairo and renders to an SDL surface by way of PyGame. This works nicely on Linux and Windows but the Mac is giving me headaches. Everything just come...

gwt and dynamic server processing. Do they belong together?

google-app-engine gwt

I am eager to build an application with Gwt and App Engine. I'm more familiar with App Engine: creating dynamic html pages with servlets and jsp's. I'm wondering however, if this type of applicat...