Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com To: swig AT cs DOT uchicago DOT edu, cygwin AT sourceware DOT cygnus DOT com Subject: JNI, Cygwin32 and swig. Message-ID: <993135165.3b320a3db2510@webmail.naema.org> Date: Thu, 21 Jun 2001 16:52:45 +0200 (CEST) From: laurent DOT hausermann AT naema DOT org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.3 X-Originating-IP: 146.19.5.51 hi all, I am trying to recompile a c library (openssl) under W32 (using Cygwin) and to access it in the W32 environnement with my JAVA program mapped with swig... Ok , it may sounds strange... but .... If I include the .dll in my java code, my java will not run any more... EX : public class simple { static { try { System.loadLibrary("openssl.dll"); } catch (UnsatisfiedLinkError e) { System.out.println("Error loading the lib"); System.exit(1); } } public static void main(String argv[]) { System.out.println("Hello World !"); } } If I include the static code, I have not output... I have put in comments the static loading part I have no problem I have my silly output... the strangest thing is that the JVM(1.3) says nothing !! Of course, on my linux box everything is fine... Regards, Laurent Hausermann PS : please write me back, I didn't subscribe to the list. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple