Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "David P. Caldwell" To: Subject: Cygwin/Java-JNI tutorial available (plus gcc question) Date: Tue, 8 Jan 2002 13:00:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal I was having trouble figuring out how to build Java/JNI programs with Cygwin. There were a number of threads in the mailing list about it, and some were helpful, but it still took a great deal of slogging. After I got it working, I put a tutorial on the web (http://www.inonit.com/cygwin/) on how to do it. If you are an expert on these matters (and don't feel like reading the tutorial), one question came up. I was unable to link my examples into DLLs using gcc. (Or, more properly, I was able to link it into a DLL, but the Java virtual machine would invariably complain that the function it was looking for did not exist.) I ended up using LCC-Win32. There's some more information about what occurred (and my cygcheck -s output) at http://www.inonit.com/cygwin/jni/helloWorld/c.html. -- David Caldwell. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/