load native lib (SWT) with JNI on windows
Ingo Bormann
ingo.bormann@web.de
Wed Nov 20 07:09:00 GMT 2002
>SWT is a pain to build because you need to carefully identify all of the
>classes to build and the directory structure is a pain to deal with
>(like, they've put spaces in the directory names).
I did not find it particulary difficult to buid. You can simply take the swt.jar (containing the class files)and give it to gcj. Or am I missing somthing important here? If you take the jar from eclipse 2.0 you have to delete the class og.eclipse.swt.internal.awt.win32.SWT_AWT.class, because it references some classes in the sun.awt package. I assume you don't need this class, if you only want to use swt without mixing awt stuff. Then it builds fine. Of course I could not test it, because of the java.lang.UnsatisfiedLinkError: swt-win32-2049: file not found.
Ingo
______________________________________________________________________________
Wer kennt nicht das Problem des unvollstandigen Adressbuches? Schluss
damit bei - WEB.DE FreeMail - http://freemail.web.de/features/?mc=021133
More information about the Java
mailing list