Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dll for JNI

843829Sep 5 2003 — edited Sep 8 2003
Hi All

At present I have spent a couple of days trying to follow the JAVA tutorial for a JNI hello world app. I am totally stalled on trying to create a dll, even at this simple level, using dev-c++, which is all I've got. If anyone knows the trick, please let me know.

I've tried every combination of settings I can imagine. Finally, I have
copied the command line instructions from the mingw FAQ at
http://www.mingw.org/mingwfaq.shtml#faq-jni-dll, and this does not work
either. I get an error message 'incorrect command line option: -iprefix. This is difficult to debug, as iprefix is not part of the command. The command is
gcc -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -Ic:/j2sdk1.4.1_02/include -
Ic:/j2sdk1.4.1_02/include/win32 -shared someJavaImp.c -o JavaImp.dll

I am 'working' - or would like to be - in a winME environment.

I would be extremely grateful for any information leading to the successful creation of a dll with the tools available to me.

yours frustrated

andrew
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2003
Added on Sep 5 2003
4 comments
171 views