RE: [Java-gnome-developer] Obsolete Hello World example
Brought to you by:
afcowie
From: Ondrej J. <ne...@po...> - 2003-11-18 19:34:33
|
Could you please point me on the right direction? I cannot find "Support" section on the website, on the project management page and in the CVSweb as well. Thanks, Nepto On Tue, 18 Nov 2003, Jeffrey Morgan wrote: > If you wish to look at the most recient version > before the official gentoo release you can grab > the ebuild on the support page. I have used it > to install on one of my systems and it worked fine. > > -Jeff > > > Yes, you are right. > > > > I'm using Gentoo Linux and it seems there is an old ebuild. > > I have to wait for 0.8 ebuild. > > > > Nepto root # qpkg -I -v | grep java-gnome > > dev-java/java-gnome-0.7.1 * > > Nepto root # > > > > Thank you for the clearification. > > > > Nepto > > > > On Tue, 18 Nov 2003, Jeffrey Morgan wrote: > > > > > The second one the you are including is from a very > > > old version of java-gnome. The first one you list > > > is current. There was an API change from 0.7.1 to > > > 0.8 and you must be running version 0.7.1 or earlier. > > > As you will see from the tutorial online it clearly > > > states it is for version 0.8. I suggest you upgrade > > > to the latest version of java-gnome. > > > > > > -Jeff > > > > > > > This is on the metioned URL: > > > > > > > > // First we import the libraries used by this example > > > > import org.gnu.gnome.App; > > > > import org.gnu.gnome.Program; > > > > import org.gnu.gtk.Gtk; > > > > > > > > public class First { > > > > > > > > public static void main(String[] args) { > > > > // Initialization > > > > Program.initGnomeUI("First", "0.1", args); > > > > > > > > App app = new App("First", "First App"); > > > > app.show(); > > > > > > > > Gtk.main(); > > > > } > > > > } > > > > > > > > This is /usr/share/java-gtk/examples/tutorial/First.java > > > > > > > > import gnu.gtk.*; > > > > import gnu.gnome.*; > > > > > > > > public class First { > > > > public static void main(String[] args) { > > > > // Initialization > > > > Gnome.init("First", "0.1", args.length, args); > > > > > > > > GnomeApp app = new GnomeApp("First", "First App"); > > > > app.setPolicy(false, true, false); > > > > app.setWmclass("First", "FirstApp"); > > > > app.show(); > > > > > > > > Gtk.main(); > > > > } > > > > } > > > > > > > > The first one does not work, the second one does. I think the > > > > second one > > > > should replace the first one on the website. See App vs. > > > > GnomeApp and so > > > > on... > > > > > > > > Nepto > > > > > > > > On Fri, 14 Nov 2003, Jeffrey Morgan wrote: > > > > > > > > > I am not completely sure I understand what you are > > > > > saying. The example compiles and runs fine. You > > > > > can give it a try. It is located in src/examples/tutorial. > > > > > > > > > > -Jeff > > > > > > > > > > > http://java-gnome.sourceforge.net/docs/GNOME-tutorial/c28.html > > > > > > > > > > > > Written Hello World example is obsolete. It is not a bad idea > > > > > > from time > > > > > > to time update the documentation. It is really a shame. > > > > -- > > _/| Ondrej Jombik - ne...@ph... - http://nepto.sk - ICQ > > #122428216 > > <_ \ Platon SDG - open source software development - > http://platon.sk > `\| Nech operacia X na mnozine G tvori grupu, potom plati... rundu! > '` > > -- Maxim, 19:12:09 18. november 2003 (utorok) -- _/| Ondrej Jombik - ne...@ph... - http://nepto.sk - ICQ #122428216 <_ \ Platon SDG - open source software development - http://platon.sk `\| This message was written with Pine, the fastest IMAP mail client '` |