|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/share/doc/libgtk-java-2.8.7/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Java-GNOME Frequently Asked Questions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
><BODY
CLASS="ARTICLE"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="ARTICLE"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>Java-GNOME Frequently Asked Questions</A
></H1
><HR
WIDTH="75%"
ALIGN="CENTER"
COLOR="#000000"
SIZE="1"></DIV
><DIV
CLASS="QANDASET"
><H2
CLASS="TITLE"
>Where can I find ...?</H2
><DL
><DT
>Q: <A
HREF="FAQ.html#AEN22"
>Where can I find the latest version of this document?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN28"
>How do I submit questions for this FAQ?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN37"
>Where can I find the latest version Java-GTK?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN43"
>Where can I find the latest version Java-GNOME?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN49"
>What is the difference between Java-GTK and Java-GNOME?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN54"
>Do I need GNOME to use Java-GTK?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN59"
>Do I need GNOME to use Java-GNOME?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN64"
>How can I build only Java-GTK?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN69"
>Why can't Java-GTK and Java-GNOME be installed at the same time?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN74"
>Which version of GTK and GNOME do you use?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN86"
>Does Java-GNOME work for Vendor X's JDK/JRE version Y?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN105"
>Does Java-GNOME work with kaffe?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#GLADE"
>Can Java-GNOME read glade files like libglade?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#BUGS"
>Where can I submit a bug / feature request?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN159"
>How do I fix the following error?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN168"
>What are the requirements for compiling Java-GNOME
with GCJ?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN173"
>How do I compile Java-GNOME with GCJ?</A
></DT
><DT
>Q: <A
HREF="FAQ.html#AEN178"
>How do I compile the examples using gcj?</A
></DT
></DL
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN22"
></A
><B
>Q: Where can I find the latest version of this document?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>You can find the latest version of Java-GNOME and the FAQ at:
<A
HREF="http://java-gnome.sourceforge.net"
TARGET="_top"
>http://java-gnome.sourceforge.net</A
>.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN28"
></A
><B
>Q: How do I submit questions for this FAQ?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>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:
<CODE
CLASS="EMAIL"
><<A
HREF="mailto:java-gnome-developer@lists.sourceforge.net"
>java-gnome-developer@lists.sourceforge.net</A
>></CODE
>.</P
><P
>This list is a good place for discussions about using Java-GTK and Java-GNOME.
You can subscribe to the list at:
<A
HREF="http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer"
TARGET="_top"
>http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer</A
>.
You can find the list archives at:
<A
HREF="http://www.geocrawler.com/lists/3/SourceForge/7036/0/"
TARGET="_top"
>http://www.geocrawler.com/lists/3/SourceForge/7036/0/</A
>.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN37"
></A
><B
>Q: Where can I find the latest version Java-GTK?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>Java-GTK is part of Java-GNOME and can be found at:
<A
HREF="http://java-gnome.sourceforge.net"
TARGET="_top"
>http://java-gnome.sourceforge.net</A
>.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN43"
></A
><B
>Q: Where can I find the latest version Java-GNOME?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>You can find the latest version of Java-GNOME and the FAQ at:
<A
HREF="http://java-gnome.sourceforge.net"
TARGET="_top"
>http://java-gnome.sourceforge.net</A
>.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN49"
></A
><B
>Q: What is the difference between Java-GTK and Java-GNOME?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>Java-GTK and Java-GNOME can be built from the same source. We split Java-GNOME
into Java-GTK which only contains GLib, ATK, Pango, GDK and GTK objects and
Java-GNOME which contains all the GNOME stuff. There is no seperate project
called Java-GTK.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN54"
></A
><B
>Q: Do I need GNOME to use Java-GTK?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>No, you do not need GNOME to use Java-GTK. But you need GLib, ATK, Pango, GDK
and GTK to use Java-GTK.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN59"
></A
><B
>Q: Do I need GNOME to use Java-GNOME?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>Yes, you need GNOME to use Java-GNOME. </P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN64"
></A
><B
>Q: How can I build only Java-GTK?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>To build the GTK bindings only, pass the --with-gtk-only flag to configure.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN69"
></A
><B
>Q: Why can't Java-GTK and Java-GNOME be installed at the same time?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>If you install Java-GNOME you have all of the libraries included in Java-GTK.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN74"
></A
><B
>Q: Which version of GTK and GNOME do you use?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>Currently Java-GNOME is being built using
<P
></P
><UL
><LI
><P
>gtk+-2.0 - 2.0or higher</P
></LI
><LI
><P
>libgnomeui-2.0 - 1.108 or higher</P
></LI
><LI
><P
>libglade-2.0 - 1.99 or higher</P
></LI
></UL
></P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN86"
></A
><B
>Q: Does Java-GNOME work for Vendor X's JDK/JRE version Y?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>Currently Java-GNOME has been tested and found working on the following JDK's
<P
></P
><UL
><LI
><P
>Blackdown's JDK 1.1.7</P
></LI
><LI
><P
>IBM's JDK 1.1.8</P
></LI
><LI
><P
>Blackdown 1.3.0-FCS (Java 2)</P
></LI
><LI
><P
>IBM's JDK 1.3 (Java 2)</P
></LI
><LI
><P
>Sun's JDK 1.3 (Java 2)</P
></LI
><LI
><P
>Kaffe 1.0.5 (See next question and answer)</P
></LI
></UL
></P
><P
>If you know of any other JDK/JRE's that Java-GNOME works with please let us
know.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN105"
></A
><B
>Q: Does Java-GNOME work with kaffe?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
><DIV
CLASS="IMPORTANT"
><P
></P
><TABLE
CLASS="IMPORTANT"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/important.gif"
HSPACE="5"
ALT="Important"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>New. Java-GNOME now works with kaffe, but does not (yet) compile with kaffe.
The following workaround were tested with kaffe-1.0.5-3 on a RedHat 6.2 system.</P
><P
>Update. Java-GNOMEunderstands about using kaffe for comiplation but we were not
able to get it to compile. If you have used kaffe to compile java files and are
willing to help please contact us.</P
></TD
></TR
></TABLE
></DIV
></P
><P
>Yes, it actually works better than IBM JDK 1.1.8. You can either set the
environment variable <B
CLASS="COMMAND"
>LD_LIBRARY_PATH</B
> or you will have
to create a few links (as root) to get it working.</P
><P
>Create links from your kaffe library directory (/usr/lib/kaffe on my system) to
libGTKJava.so for Java-GTK and to libGTKJava.so and libGNOMEJava.so for
Java-GNOME or set your LD_LIBRARY_PATH so that it includes the path to the above
libraries.</P
><P
>On my system this means that I had to do the following to get it running:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>cd /usr/lib/kaffe
ln -s /usr/lib/libGNOMEJava.so
ln -s /usr/lib/libGTKJava.so</PRE
></TD
></TR
></TABLE
>
or
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>export LD_LIBRARY_PATH=/usr/lib</PRE
></TD
></TR
></TABLE
></P
><P
>I then changed to the /usr/share/java-gnome/test dir and ran:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>kaffe -addclasspath ../gtk.jar:../gnome.jar:. TestGNOME</PRE
></TD
></TR
></TABLE
>
and saw the pretty examples.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="GLADE"
></A
><B
>Q: Can Java-GNOME read glade files like libglade?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>Yes. Java-GNOME can do it. See the examples directory for some examples.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="BUGS"
></A
><B
>Q: Where can I submit a bug / feature request?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>You can submit all bugs / feature requests on sourceforge
(<A
HREF="http://java-gnome.sourceforge.net"
TARGET="_top"
>http://java-gnome.sourceforge.net</A
>) or on the java-gnome-developer
mailing list. Use the following email address for the list:
<CODE
CLASS="EMAIL"
><<A
HREF="mailto:java-gnome-developer@lists.sourceforge.net"
>java-gnome-developer@lists.sourceforge.net</A
>></CODE
>.</P
><P
>This list is a good place for discussions about using Java-GTK and Java-GNOME.
You can subscribe to the list at:
<A
HREF="http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer"
TARGET="_top"
>http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer</A
>.
You can find the list archives at:
<A
HREF="http://www.geocrawler.com/lists/3/SourceForge/7036/0/"
TARGET="_top"
>http://www.geocrawler.com/lists/3/SourceForge/7036/0/</A
>.</P
><P
><DIV
CLASS="IMPORTANT"
><P
></P
><TABLE
CLASS="IMPORTANT"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/important.gif"
HSPACE="5"
ALT="Important"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>When submitting a bug please include as much as possible of the following:
<P
></P
><UL
><LI
><P
>The output from <B
CLASS="COMMAND"
>which java</B
></P
></LI
><LI
><P
>The output from <B
CLASS="COMMAND"
>java --version</B
></P
></LI
><LI
><P
>The supplier of the JDK eg.: Sun, IBM, Blackdown, etc.</P
></LI
><LI
><P
>The place where you installed Java</P
></LI
><LI
><P
>The output from <B
CLASS="COMMAND"
>echo $PATH</B
></P
></LI
><LI
><P
>Full path and current directory when running java</P
></LI
><LI
><P
>As full a description of the problem as possible</P
></LI
><LI
><P
>The Java-GNOME/GTK version</P
></LI
></UL
></P
></TD
></TR
></TABLE
></DIV
></P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN159"
></A
><B
>Q: How do I fix the following error?</B
></BIG
></P
><P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>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 gnu.gtk.Gtk.<clinit>(Gtk.java:23)
at TestGTK.main(TestGTK.java:412)</PRE
></TD
></TR
></TABLE
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>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.</P
><P
>If you did this and it still gives you the same error message please contact us.
Also see <A
HREF="FAQ.html#BUGS"
>Q: Q:</A
>.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN168"
></A
><B
>Q: What are the requirements for compiling Java-GNOME
with GCJ?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>In order to compile Java-GNOME with GCJ for binary
support you must have GCJ release 3.0.0 or higher
and a JDK.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN173"
></A
><B
>Q: How do I compile Java-GNOME with GCJ?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>There are a few arguments to the configure script that
will facilitate the build. They are --with-gcj-compile
(compile the bindings with native gcj support) and
--with-gcj-prefix (specify the root directory fo the
gcc tree which contains gcj). If gcj is in your path
you should just be able to type "./configure --with-gcj-compile".
The build process will generate the java and jni code and
compile the java and C code. This part of the build will
use your standard JDK and C compiler. Once this is complete
it will compile the java code into a shared object using
gcj with the jni feature.</P
></DIV
></DIV
><DIV
CLASS="QANDAENTRY"
><DIV
CLASS="QUESTION"
><P
><BIG
><A
NAME="AEN178"
></A
><B
>Q: How do I compile the examples using gcj?</B
></BIG
></P
></DIV
><DIV
CLASS="ANSWER"
><P
><B
>A: </B
>In order to compile the examples using gcj
you must first build the bindings using the
"--with-gcj-compile" option. You then should be
able to compile the examples using the following
command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>gcj -fPIC -fjni -g -O -o Calculator --main=Calculator \
-L<I
CLASS="EMPHASIS"
>path to shared objects</I
> Calculator.java -lGTKJAR -lGNOMEJAR</PRE
></TD
></TR
></TABLE
></P
></DIV
></DIV
></DIV
></DIV
></BODY
></HTML
>