All pastes #257321 Raw Edit

scott

public text v1 · immutable
#257321 ·published 2006-11-25 05:21 UTC
rendered paste body
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V3.1//EN"><article><?dbhtml filename="index.html"><artheader>  <author><firstname>Java-GNOME</firstname><surname>team</surname></author>  <authorinitials>cjvw</authorinitials>  <artpagenums>339-343</artpagenums>  <volumenum>0</volumenum>  <issuenum>1</issuenum>  <publisher><publishername>The TeX User's Group</publishername></publisher>  <pubdate>2000</pubdate>  <title>Java-GNOME Frequently Asked Questions</title>  <titleabbrev>CTAN-Web</titleabbrev>  <revhistory>     <revision>        <revnumber>0.8</revnumber>        <date>05 July 2003</date>     </revision>  </revhistory></artheader><qandaset><title>Where can I find ...?</title><qandaentry><question><para>Where can I find the latest version of this document?</para></question><answer><para>You can find the latest version of Java-GNOME and the FAQ at:<ulink url="http://java-gnome.sourceforge.net">http://java-gnome.sourceforge.net</ulink>.</para></answer></qandaentry><qandaentry><question><para>How do I submit questions for this FAQ?</para></question><answer><para>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:<email>java-gnome-developer@lists.sourceforge.net</email>.</para><para>This list is a good place for discussions about using Java-GTK and Java-GNOME.You can subscribe to the list at:<ulink url="http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer">http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer</ulink>.You can find the list archives at:<ulink url="http://www.geocrawler.com/lists/3/SourceForge/7036/0/">http://www.geocrawler.com/lists/3/SourceForge/7036/0/</ulink>.</para></answer></qandaentry><qandaentry><question><para>Where can I find the latest version Java-GTK?</para></question><answer><para>Java-GTK is part of Java-GNOME and can be found at:<ulink url="http://java-gnome.sourceforge.net">http://java-gnome.sourceforge.net</ulink>.</para></answer></qandaentry><qandaentry><question><para>Where can I find the latest version Java-GNOME?</para></question><answer><para>You can find the latest version of Java-GNOME and the FAQ at:<ulink url="http://java-gnome.sourceforge.net">http://java-gnome.sourceforge.net</ulink>.</para></answer></qandaentry><qandaentry><question><para>What is the difference between Java-GTK and Java-GNOME?</para></question><answer><para>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.</para></answer></qandaentry><qandaentry><question><para>Do I need GNOME to use Java-GTK?</para></question><answer><para>No, you do not need GNOME to use Java-GTK.  But you need GLib, ATK, Pango, GDK and GTK to use Java-GTK.</para></answer></qandaentry><qandaentry><question><para>Do I need GNOME to use Java-GNOME?</para></question><answer><para>Yes, you need GNOME to use Java-GNOME.  </para></answer></qandaentry><qandaentry><question><para>How can I build only Java-GTK?</para></question><answer><para>To build the GTK bindings only, pass the --with-gtk-only flag to configure.</para></answer></qandaentry><qandaentry><question><para>Why can't Java-GTK and Java-GNOME be installed at the same time?</para></question><answer><para>If you install Java-GNOME you have all of the libraries included in Java-GTK.</para></answer></qandaentry><qandaentry><question><para>Which version of GTK and GNOME do you use?</para></question><answer><para>Currently Java-GNOME is being built using<itemizedlist><listitem><para>gtk+-2.0 - 2.0or higher</para></listitem><listitem><para>libgnomeui-2.0 - 1.108 or higher</para></listitem><listitem><para>libglade-2.0 - 1.99 or higher</para></listitem></itemizedlist></para></answer></qandaentry><qandaentry><question><para>Does Java-GNOME work for Vendor X's JDK/JRE version Y?</para></question><answer><para>Currently Java-GNOME has been tested and found working on the following JDK's<itemizedlist><listitem><para>Blackdown's JDK 1.1.7</para></listitem><listitem><para>IBM's JDK 1.1.8</para></listitem><listitem><para>Blackdown 1.3.0-FCS (Java 2)</para></listitem><listitem><para>IBM's JDK 1.3 (Java 2)</para></listitem><listitem><para>Sun's JDK 1.3 (Java 2)</para></listitem><listitem><para>Kaffe 1.0.5 (See next question and answer)</para></listitem></itemizedlist></para><para>If you know of any other JDK/JRE's that Java-GNOME works with please let us know.</para></answer></qandaentry><qandaentry><question><para>Does Java-GNOME work with kaffe?</para></question><answer><para><important><para>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.</para><para>Update.  Java-GNOMEunderstands about using kaffe for comiplation but we were notable to get it to compile.  If you have used kaffe to compile java files and arewilling to help please contact us.</para></important></para><para>Yes, it actually works better than IBM JDK 1.1.8.  You can either set the environment variable <command>LD_LIBRARY_PATH</command> or you will have to create a few links (as root) to get it working.</para><para>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 abovelibraries.</para><para>On my system this means that I had to do the following to get it running:<screen>cd /usr/lib/kaffeln -s /usr/lib/libGNOMEJava.soln -s /usr/lib/libGTKJava.so</screen>or<screen>export LD_LIBRARY_PATH=/usr/lib</screen></para><para>I then changed to the /usr/share/java-gnome/test dir and ran:<screen>kaffe -addclasspath ../gtk.jar:../gnome.jar:. TestGNOME</screen>and saw the pretty examples.</para></answer></qandaentry><qandaentry><question id="glade"><para>Can Java-GNOME read glade files like libglade?</para></question><answer><para>Yes.  Java-GNOME can do it.  See the examples directory for some examples.</para></answer></qandaentry><qandaentry><question id="bugs"><para>Where can I submit a bug / feature request?</para></question><answer><para>You can submit all bugs / feature requests on sourceforge (<ulink url="http://java-gnome.sourceforge.net">http://java-gnome.sourceforge.net</ulink>) or on the java-gnome-developer mailing list.  Use the following email address for the list:<email>java-gnome-developer@lists.sourceforge.net</email>.</para><para>This list is a good place for discussions about using Java-GTK and Java-GNOME.You can subscribe to the list at:<ulink url="http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer">http://lists.sourceforge.net/mailman/listinfo/java-gnome-developer</ulink>.You can find the list archives at:<ulink url="http://www.geocrawler.com/lists/3/SourceForge/7036/0/">http://www.geocrawler.com/lists/3/SourceForge/7036/0/</ulink>.</para><para><important><para>When submitting a bug please include as much as possible of the following:<itemizedlist><listitem><para>The output from <command>which java</command></para></listitem><listitem><para>The output from <command>java --version</command></para></listitem><listitem><para>The supplier of the JDK eg.: Sun, IBM, Blackdown, etc.</para></listitem><listitem><para>The place where you installed Java</para></listitem><listitem><para>The output from <command>echo $PATH</command></para></listitem><listitem><para>Full path and current directory when running java</para></listitem><listitem><para>As full a description of the problem as possible</para></listitem><listitem><para>The Java-GNOME/GTK version</para></listitem></itemizedlist></para></important></para></answer></qandaentry><qandaentry><question><para>How do I fix the following error?</para><para><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.&lt;clinit&gt;(Gtk.java:23)      at TestGTK.main(TestGTK.java:412)</screen></para></question><answer><para>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.</para><para>If you did this and it still gives you the same error message please contact us.Also see <xref linkend="bugs">.</para></answer></qandaentry><qandaentry><question><para>What are the requirements for compiling Java-GNOMEwith GCJ?</para></question><answer><para>In order to compile Java-GNOME with GCJ for binarysupport you must have GCJ release 3.0.0 or higherand a JDK.</para></answer></qandaentry><qandaentry><question><para>How do I compile Java-GNOME with GCJ?</para></question><answer><para>There are a few arguments to the configure script thatwill facilitate the build.  They are --with-gcj-compile(compile the bindings with native gcj support) and--with-gcj-prefix (specify the root directory fo thegcc tree which contains gcj).  If gcj is in your pathyou should just be able to type "./configure --with-gcj-compile".The build process will generate the java and jni code andcompile the java and C code.  This part of the build willuse your standard JDK and C compiler.  Once this is complete it will compile the java code into a shared object usinggcj with the jni feature.</para></answer></qandaentry><qandaentry><question><para>How do I compile the examples using gcj?</para></question><answer><para>In order to compile the examples using gcjyou must first build the bindings using the"--with-gcj-compile" option.  You then should beable to compile the examples using the followingcommand:<screen>gcj -fPIC -fjni -g -O -o Calculator --main=Calculator \-L<emphasis>path to shared objects</emphasis> Calculator.java -lGTKJAR -lGNOMEJAR</screen></para></answer></qandaentry></qandaset></article>