2000
Revision History | ||
---|---|---|
Revision 0.4.5 | 2 November 200 | |
First draft for review. |
You can find the latest version of Java-GNOME and the FAQ at: http://java-gnome.sourceforge.net.
You can submit questions to the FAQ by sending them to the java-gnome-developer mailing list. Use the following email address for the list: <java-gnome-developer@lists.sourceforge.net>.
This list is a good place for discussions about using Java-GTK and Java-GNOME. You can subscribe to the list at: http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer. You can find the list archives at: http://www.geocrawler.com/lists/3/SourceForge/7036/0/.
Java-GTK is part of Java-GNOME and can be found at: http://java-gnome.sourceforge.net.
You can find the latest version of Java-GNOME and the FAQ at: http://java-gnome.sourceforge.net.
Java-GTK and Java-GNOME can be built from the same source. We split Java-GNOME into Java-GTK which only contains GDK and GTK objects and Java-GNOME which contains all the GNOME stuff. There is no seperate project called Java-GTK.
No, you do not need GNOME to use Java-GTK. But you only need GDK and GTK to use Java-GTK.
To build the GTK bindings only, pass the --with-gtk-only flag to configure.
To understand the problem one has to look at the header files of GNOME and GTK. In the GNOME header files one will find GTK bindings (eg. GtkDial). This means that we have two options when implementing them. We can either put them in the gnome package or the gtk package. For now we have decided to put them in the gtk package since it is more intuitive for the developer using the bindings.
Since there are some people that wants GTK only bindings it means that we have to distribute two versions of gtk.jar and libGTKJava.so. The one containing only GTK bindings and the other the GTK bindings and the GTK bindings that comes with GNOME.
Hopefully these bindings will be folded into GTK-1.4 and we will be able to solve this. As time progresses we should (hopefully) be able to fix this and make it so that one needs both Java-GTK and Java-GNOME.
Yes, you need GNOME to use Java-GNOME. But you only need GDK and GTK to use Java-GTK.
Currently Java-GNOME is being built using
gtk+-1.2.8
gnome-core-1.2.3
gnome-libs-1.2.8
Currently Java-GNOME has been tested and found working on the following JDK's
Blackdown's JDK 1.1.7
IBM's JDK 1.1.8
IBM's JDK 1.3 (Java 2)
Sun's JDK 1.3 (Java 2)
If you know of any other JDK/JRE's that Java-GNOME works with please let us know.
No. But we would like to add support for it in future. Please contact us if you are interested in doing this.
13. How do I fix the following error?
lib/libGTKJava.so.0.x.y: undefined symbol: gnome_entry_max_saved at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306) at java.lang.Runtime.loadLibrary0(Runtime.java:749) at java.lang.System.loadLibrary(System.java:820) at gtk.Gtk.<clinit>(Gtk.java:23) at TestGTK.main(TestGTK.java:412) |
The most common error of this type is caused by the fact that your system can not find the libraries it needs to load. Try to run make install as root and ensure that the directory the two libraries (libGtkJava.so and libGNOMEJava.so) end up in is in the dynamic loader's path.
If you did this and it still gives you the same error message please contact us with the version of the JDK, GTK and GNOME that you use and detail on the error that you get.
gtk_message_box_new uses variable arguments. Java does not implement variable arguments in the same way as C does. Therefore we had to limit the amount of arguments to a number - ten seemed ample. If you have a sane use for more than ten arguments please show us an example and we will consider expanding this. For more details on this issue see the parser documentation that should come with this or look at http://java-gnome.sourceforge.net if you can not find it.