This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Executing Gcj-SWT native code fails
- From: Jakob Praher <jpraher at yahoo dot de>
- To: krimo <aait at free dot fr>, "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: Mon, 17 Jan 2005 13:40:44 +0100
- Subject: Re: Executing Gcj-SWT native code fails
- References: <41EBAACD.2070809@free.fr>
Am Montag, den 17.01.2005, 13:08 +0100 schrieb krimo:
> Hi guys,
>
> And my Makefile:
> gcj -c -Wall -I./lib/swt.jar --classpath=src/ src/Test.java
> #Linking all
> gcj --main=Test Test.o -lswt -lswt-pi -o Test
>
how did you compile libswt.so and libswt-pi.so, did you mention the
-fjni flag (this classes contain native code, which is implemented using
jni), do you have a LD_LIBRARY_PATH for the jni shared objects ?
I don't have a problem using swt gui stuff, but I've tested with
gcc-head recently. Also I've found that compiling swt.jar with the old
abi (which is the only one in gcc-3.4) I have some strange verifier
error.
Do you get an error, or simply nothing?
--
Jakob Praher <jpraher@yahoo.de>