delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/09/09/21:15:04

From: boukanov AT sentef2 DOT fi DOT uib DOT no (Igor Boukanov)
Subject: JNI and GCC
9 Sep 1997 21:15:04 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.HPP.3.95.970909144126.27330B-100000.cygnus.gnu-win32@sentef2.fi.uib.no>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi,

I tried to use gcc from b18 to implement JNI native libraris but without
much success, i.e. I was able to create dll, but I could not load libarary
from JVM. After the execution:
System.load("C:\\test\\test.dll");
I always got:
java.lang.UnsatisfiedLinkError: C:\test\test.dll
        at java.lang.Runtime.load(Runtime.java:397)
        at java.lang.System.load(System.java:553)
        at Prompt.main(Prompt.java:32)

In the same time I saw in the list archive that some guys at least were
able to call native methods. So what is a problem?

P.S.

I also noticed that I can load system, MS-OFFICE dll's and  cygwin.dll
from Sergey, but not the one from oficial b18 package (of cause, they do
not contain any Java methods and the linking failed). So what is the
difference?  


Regards, Igor Boukanov. 
igor DOT boukanov AT fi DOT uib DOT no  
http://www.fi.uib.no/~boukanov/


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019