[desktop-discuss] Java-Gnome 2.14 Spec Files for nevada
John Rice
John.Rice at Sun.COM
Thu Jun 22 09:28:36 PDT 2006
Hi,
For those of us who enjoy hacking in Java and want full access to the
underlying Gnome API and like using Glade to specify your Gnome UI, here
you go.
"Java-Gnome is a set of Java bindings for the GNOME
<http://www.gnome.org> and GTK+ <http://www.gtk.org> libraries that
allow GNOME and GTK+ applications to be written in Java."
I've written spec files for all the core libs the folks at Java-Gnome
have created [http://java-gnome.sourceforge.net/]. The spec files where
used to build the Java-Gnome jars and libs on nevada b41 x86 with the
JDS CBE as described under "6. Building Solaris Packages":
http://www.opensolaris.org/os/community/desktop/communities/jds/building/
This release series, collectively called java-gnome 2.14.1, consists of
glib-java 0.2.5, cairo-java 1.0.4, libgtk-java 2.8.5, libglade-java
2.12.4, libgnome-java 2.12.3, and libgconf-java 2.12.3
To get started there are plenty of examples, just copy them from the
following install dirs once they've been built and run the sample apps
directly using javac and java (setting classpath appropriately) or using
the runExample.sh script if there. I've done a quick smoke test on most
of them [there are lots] and they all seem to work, noticed some don't
shut down cleanly and a few other oddities that I'll look into.
I'll also be looking at gathering this up into a NetBeans plugin, but
for now it's easy to setup a NetBeans JavaGnome project yourself
[http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/NetBeansDevelopment].
Off for 3 weeks hols, so maybe some kind soul will have done it for me
by the time i get back :) Other useful doc at:
http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/HintsAndTips
Enjoy,
JR
Running Examples
============
cp -R /usr/share/doc/libgtk-java-2.8.5/examples/ ~/examples-gtk
cp -R /usr/share/doc/libgnome-java-2.12.3/examples/ ~/examples-gnome
cp -R /usr/share/doc/libglade-java-2.12.4/examples/ ~/examples-glade
cp -R /usr/share/doc/libgconf-java-2.12.3/examples/ ~/examples-gconf
cd ~/examples-gtk
./runExample.sh testgtk/TestGTK
cd ~/examples-gnome
./runExample.sh testgnome/TestGNOME <-- didn't shut down cleanly need
to Ctrl-C out of it
$ javac -classpath
.:/usr/share/java/glib0.2.jar:/usr/share/java/cairo1.0.jar:/usr/share/java/gtk2.8.jar:/usr/share/java/gnome2.12.jar:/usr/share/java/glade2.12.jar
glade/LibGladeTest.java
$ java -classpath
.:/usr/share/java/glib0.2.jar:/usr/share/java/cairo1.0.jar:/usr/share/java/gtk2.8.jar:/usr/share/java/gnome2.12.jar:/usr/share/java/glade2.12.jar
glade/LibGladeTest glade/gtk.glade
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss-beta1.opensolaris.org/pipermail/desktop-discuss/attachments/20060622/17919735/attachment-0003.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spec-files-java-gnome2.14.tar.bz2
Type: application/x-bzip
Size: 7148 bytes
Desc: not available
Url : http://oss-beta1.opensolaris.org/pipermail/desktop-discuss/attachments/20060622/17919735/attachment.bin
More information about the desktop-discuss
mailing list