This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
load native lib (SWT) with JNI on windows
- From: Ingo Bormann <ingo dot bormann at web dot de>
- To: java at gcc dot gnu dot org
- Date: Mon, 18 Nov 2002 18:35:28 +0100
- Subject: load native lib (SWT) with JNI on windows
- Organization: http://freemail.web.de/
Hi,
I try to get SWT working on windows with gcj. Everything compiles fine, but I just can't get gcj to load the swt dll.
Waht I always get is this:
java.lang.UnsatisfiedLinkError: swt-win32-2049: file not found
The dll is located in the same dir as the exe. I played a bit with pathnames and java.library.path property settings and tried to load the lib myself with System.loadLibrary() but did not succeed.
>From the previous posts I thought it was possible to use JNI and at least load the dll. Is there some trick to do this or is this a more general problem?
I am using Cygwin 1.3.15 and gcj 3.2 on WinXP and swt from eclipse 2.0.1.
(BTW, the swt.jar for win32 contains some references to some sun.awt classes in the class org.eclipse.swt.internal.awt.win32.SWT_AWT.class that have to be removed to compile them with gcj. I removed the class completly.)
Ingo
______________________________________________________________________________
Virenschutz inklusive: Bei WEB.DE FreeMail konnen Sie jeden
Dateianhang auf Viren prufen http://freemail.web.de/features/?mc=021130