Re: [jnc-users] SWT DLL version issue
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2009-07-05 19:41:40
|
Dear Max You need the dll from your SWT bundle, not from mine. It's in the swt.jar. It's just coincidence that the JNC gui is also written in SWT... SWT checks at runtime if the dlls are in java.library.path. If not, they're extracted from the jar to the system temporary path and used from there. This seems to fail with the JNC compiled binary; thus it asks for the dll. Hope that helps (and therefore you at least once didn't fail in live ;-)) Marco Maximilian Eberl wrote: > Hello and Gruezi Marco! > > First: Thank You a lot for Your work. I struggled a few days through gcj and failed (like I always do in my life ...) but prefer now to pay You for Your pain. Chapeau! > > Now the problem: > > I downloaded 1.1.1 and wrote a standard Hello-App named Wuff.java (I am a dog owner), included swt.jar in the project, added command line flags "--classpath=C:\jnc\swt.jar" (checked) and "-findirect-dispatch", excluded GUI and JCE packages (by the way: java.text contains the often-used SimpleDateFormat and DecimalFormat - better leave it in the core jar!!!!) and compiled it successfully. > > Starting it on the Dos-Box told me: > > C:\jnc>Wuff > Exception in thread "main" java.lang.UnsatisfiedLinkError: swt-win32-3218: can' > ... > > So I copied the > swt-win-32-3235.dll > enclosed in Your download into the directory of Wuff.exe > > It failed again, so I looked closer to the error message and detected, that it was expecting ..3218.dll, not 3225. > > Renaming did the job an the dog barked. > > Would You please take a look to the different expected versions? Maybe 3225 contains a few sexy features more than 3118. Or is only the message outdated (Copy&Paste)? > > Greetings from Speyer > > Maximilian Eberl > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |