Re: [Java-gnome-developer] Compiling the examples codes
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2005-01-10 22:35:14
|
Be aware that you're mixing development and released stable versions of the code. On Mon, 2005-10-01 at 23:05 +0100, Khiraly wrote: > I have downloaded the latest source code: > ftp://ftp.gnome.org/pub/GNOME/sources/libgnome-java/2.9/libgnome-java-2.9.3.tar.bz2 That's the development branch > I used the following command to compile(native binary): > > gcj-3.4 > -classpath /usr/share/java/gtk2.4.jar:/usr/share/java/gnome2.8.jar > -lgtkjar2.4 -lgnomejar2.8 --main=SimpleMenu SimpleMenu.java > /usr/bin/ld: cannot find -lgtkjar2.4 > collect2: ld returned 1 exit status Whereas all those refer to libraries from the stable released version (which is correct & what you should be testing against). ++ Have you had success using a normal Java VM first? GCJ can be a bit tricky. Establish that you can compile with javac (ie, have your CLASSPATH right) and then run using java (ie, have your LD_LIBRARY_PATH right) a test program, then cycle back and try GCJ again. To test, you might try entries.Entry - I find that a nice simple example to start with. [Oh, to that gcj command line, you might want to add a -o flag to say where the output executable is going to go. That's nothing to do with the problem you're having, though] ++ I've heard some Debian people mention their libraries were in /usr/lib/jni for some absurd reason. You might need that on your library path. AfC Sydney -- Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ Sydney: +61 2 9977 6866 New York: +1 646 472 5054 Toronto: +1 416 848 6072 London: +44 207 1019201 |