Revision of <em>JNI-MinGW-DLL</em> from <em>2008, August 10 - 15:25</em>

Posted August 10th, 2008 by fhackenberger

JNI is the Java Native Interface, you will need to download and install the Java SDK. Note the installation directory (ie/ c:\j2sdk1.4.1_02 ) for use later. If you are using MSYS add a line similiar to the following in /etc/fstab and then restart MSYS:

c:/j2sdk1.4.1_02 /java

In MSYS the JNI DLL can be generated using the following (NOTE: -Wl has an 'L' not a '1'):

I'm trying to compile a JNI dll using the options listed here, however, my C implementation code calls functions in a non-standard library. Where would be an appropriate place to pass the path to my library? After the -Wl, option? Thank you for your patience, I don't have much experience with gcc