Re: [Java-gnome-developer] Problem running glade program
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2004-12-17 18:19:30
|
Hi, We're currently in the process of updating how we do documentation. The website unfortuntately has broken links. We are fixing them, but slowly since we're only doing this in our free time. The old java-gnome tutorial used to be the only docs we had. The wiki and HintsAndTips page is an attempt to improve the situation by allowing anybody to add and edit documents. In this case, the author clearly hasn't even tried to comile the code. Please do correct the errors on the wiki page. On Fri, Dec 17, 2004 at 07:04:27PM +0100, Abcdefg wrote: > I changed all correct > > But then when I compile tihs are the errors: > SimpleGladeExample.java:33: non-static variable PROGRAM_NAME cannot be > referenced from a static context > Program.initGnomeUI(PROGRAM_NAME, PROGRAM_VERSION, args); > ^ > SimpleGladeExample.java:33: non-static variable PROGRAM_VERSION cannot be > referenced from a static context > Program.initGnomeUI(PROGRAM_NAME, PROGRAM_VERSION, args); adding the keyword static to the field declarations for those will fix this ^ > SimpleGladeExample.java:35: cannot resolve symbol > symbol : variable Gtk > location: class SimpleGladeExample > Gtk.main(); add import org.gnu.gtk.*; -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |