On Wed, May 22, 2002 at 09:15:13PM +0200, Pac wrote: | Hi all, | | does anyone have a documentation that shows how to use GCJ 3.1 to compile | (in native mode) a set java classes
$ cat > Hello.java <<EOF public class Hello { public static void main( String[] argv ) { System.out.println( "Hello World" ) ; } } EOF $ gcj-3.0 --main=Hello Hello.java $ ./a.out Hello World $ | into a library and to use it into | | a GTK+ application | a Qt application | | ?? To make use of existing C/C++ libraries requires writing JNI (or CNI) bridge code in C/C++ to provide a Java interface that your Java code can access. GCJ doesn't provide auto wrappers like that, it just turns your java source into native binaries. For GTK+ you can take a look at http://java-gnome.sourceforge.net/. HTH, -D -- The remote desktop feature of Windows XP is really nice (and *novel*!). As a Microsoft consultant can *remotely* disable the personal firewall and control the system. We'll ignore the fact that this tampering with the firewall is not logged, and more importantly, that the firewall isn't restored when the clowns from Redmond are done with their job. -- bugtraq GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
pgpK0MTtuxGym.pgp
Description: PGP signature