On Fri, 2008-10-10 at 11:30 +0200, Federico wrote:
> Hi all,
Hello :)
> I want to try the java-gnome package to build my java apps.
Great.
> I use Eclipse to create and build them.
Yup.
> The first I tried is this:
...
Nothing particularly wrong with what you've written, although I'd
probably suggest that
> Gtk.init(args);
> try{
> poste = new posteKey();
> }
> catch(Exception e){
> e.printStackTrace();
> }
> Gtk.main();
it's a bit strange to catch any and all exceptions coming out of your
constructor. I mean, if something goes wrong, there's little point in
starting the main loop; just let the Exception propagate and terminate
your program.
So personally I would have done
Gtk.init(args);
poste = new posteKey();
Gtk.main();
But no matter.
...
> In the posteKey.glade there are, simply, a button and a text area.
I assume you used Glade 2 or Glade 3 to create this .glade file? But
that doesn't matter either. Just so long as you didn't try to write
a .glade file by hand!
> 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
This is bizarre.
What version of java-gnome are you using?
If you're not using at least 4.0.8 then you need to get a newer
And if you're going to do that, either grab today's 4.0.9-rc2 or just
straight up checkout 'mainline' of java-gnome from version control.
> I also tried the first example on the java-gnome website (so without
> Glade) but the same error occurred!
Ok, that's just wacko.
The first things I was going to suggest were "try it without Glade" and
"did you try the simple ExamplePressMe that's on the website (and in the
java-gnome sources at doc/example/button/ExamplePressMe.java)
If you were to build java-gnome yourself, `make test` and `make demo`
should work. That'd probably be the starting point I'd suggest.
If you're able to join us on IRC, I'm sure someone would be happy to
walk through things with you.
AfC
Sydney
--
Andrew Frederick Cowie
Operational Dynamics is an operations and engineering consultancy
focusing on IT strategy, organizational architecture, systems
review, and effective procedures for change management. We actively
carry out research and development in these areas on behalf of our
clients, and enable successful use of open source in their mission
critical enterprises, worldwide.
http://www.operationaldynamics.com/
Sydney New York Toronto London
|