Java-GNOME Frequently Asked Questions

Java-GNOME team

2000

Revision History
Revision 0.4.52 November 200
First draft for review.

Where can I find ...?

1. Where can I find the latest version of this document?
2. How do I submit questions for this FAQ?
3. Where can I find the latest version Java-GTK?
4. Where can I find the latest version Java-GNOME?
5. What is the difference between Java-GTK and Java-GNOME?
6. Do I need GNOME to use Java-GTK?
7. How can I build only Java-GTK?
8. Why can't Java-GTK and Java-GNOME be installed at the same time?
9. Do I need GNOME to use Java-GNOME?
10. Which version of GTK and GNOME do you use?
11. Does Java-GNOME work for Vendor X's JDK version Y?
12. Does Java-GNOME work with kaffe?
13. How do I fix the following error?
14. Why can I only have up to ten buttons in GtkMessageBox?

1. Where can I find the latest version of this document?

You can find the latest version of Java-GNOME and the FAQ at: http://java-gnome.sourceforge.net.

2. How do I submit questions for this FAQ?

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: .

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/.

3. Where can I find the latest version Java-GTK?

Java-GTK is part of Java-GNOME and can be found at: http://java-gnome.sourceforge.net.

4. Where can I find the latest version Java-GNOME?

You can find the latest version of Java-GNOME and the FAQ at: http://java-gnome.sourceforge.net.

5. What is the difference between Java-GTK and Java-GNOME?

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.

6. Do I need GNOME to use Java-GTK?

No, you do not need GNOME to use Java-GTK. But you only need GDK and GTK to use Java-GTK.

7. How can I build only Java-GTK?

To build the GTK bindings only, pass the --with-gtk-only flag to configure.

8. Why can't Java-GTK and Java-GNOME be installed at the same time?

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.

9. Do I need GNOME to use Java-GNOME?

Yes, you need GNOME to use Java-GNOME. But you only need GDK and GTK to use Java-GTK.

10. Which version of GTK and GNOME do you use?

Currently Java-GNOME is being built using

  • gtk+-1.2.8

  • gnome-core-1.2.3

  • gnome-libs-1.2.8

11. Does Java-GNOME work for Vendor X's JDK version Y?

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.

12. Does Java-GNOME work with kaffe?

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.

14. Why can I only have up to ten buttons in GtkMessageBox?

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.