load native lib (SWT) with JNI on windows
Ingo Bormann
ingo.bormann@web.de
Mon Nov 18 09:50:00 GMT 2002
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
More information about the Java
mailing list