This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: load native lib (SWT) with JNI on windows


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]