[Java-gnome-developer] problem with glade and eclipse
Brought to you by:
afcowie
From: Federico <fe...@gm...> - 2008-10-10 09:33:17
|
Hi all, I want to try the java-gnome package to build my java apps. I use Eclipse to create and build them. The first I tried is this: package org.posteKey; import java.io.FileNotFoundException; import org.gnome.glade.Glade; import org.gnome.glade.XML; import org.gnome.gtk.Button; import org.gnome.gtk.Gtk; import org.gnome.gtk.Window; public class posteKey { XML glade; final Window win1; final Button press; public posteKey() throws FileNotFoundException{ glade = Glade.parse("./data/posteKey.glade", "window1"); win1 = (Window)glade.getWidget("window1"); press = (Button)glade.getWidget("button1"); } /** * @param args */ public static void main(String[] args) throws FileNotFoundException{ posteKey poste; Gtk.init(args); try{ poste = new posteKey(); } catch(Exception e){ e.printStackTrace(); } Gtk.main(); } } In the posteKey.glade there are, simply, a button and a text area. When I run the application from the Eclipse interface I get this on the console: ** (java:9257): WARNING **: Irregular conf file line(1): # this file contains quirks ** (java:9257): WARNING **: Irregular conf file line(1): # list prgname that need to be ignored below ** (java:9257): WARNING **: Irregular conf file line(1): # ** (java:9257): WARNING **: Irregular conf file line(0): and nothing appear on my screen. I also tried the first example on the java-gnome website (so without Glade) but the same error occurred! Please, can someone help me? I use the Sun JDK to build my java apps, if this can be important... Thanks to all. Federico |