This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: load native lib (SWT) with JNI on windows
- From: Frank Jacobs <forkjake at yahoo dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 19 Nov 2002 13:23:41 -0800 (PST)
- Subject: Re: load native lib (SWT) with JNI on windows
> Is there some special mojo needed to get SWT working?
The only mojo that I can think of is to make sure to complile the SWT
classes that use JNI with the -fjni flag. But that wouldn't explain your
ClassNotFoundException. Hmmm...
I have a makefile for an SWT 1.0 sample application for Windows. It works
with GCJ 3.2 except the JNI method calls don't work (because of the
standard call issues). I can post it if it would be useful. Of course, to
use it you have to download Eclipse 1.0 first...
I tried doing the GCJ/SWT test myself last night, but I had some
"challenges" applying Ranjit's awesome JNI patches
(http://gcc.gnu.org/ml/java-patches/2002-q4/msg00227.html). Got a compiler
error when building GCJ. It's probably my fault; I'm going to look into it
some more tonight.
-Frank
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com