java-gnome-developer Mailing List for The java-gnome language bindings project (Page 68)
Brought to you by:
afcowie
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(37) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(2) |
Feb
(20) |
Mar
(20) |
Apr
(8) |
May
|
Jun
(1) |
Jul
(6) |
Aug
(39) |
Sep
(37) |
Oct
(34) |
Nov
(50) |
Dec
(22) |
2002 |
Jan
(7) |
Feb
(13) |
Mar
(32) |
Apr
(16) |
May
(26) |
Jun
(20) |
Jul
(32) |
Aug
(7) |
Sep
(2) |
Oct
(11) |
Nov
(3) |
Dec
(35) |
2003 |
Jan
(11) |
Feb
(3) |
Mar
(8) |
Apr
(3) |
May
(11) |
Jun
(20) |
Jul
(11) |
Aug
(29) |
Sep
(13) |
Oct
(91) |
Nov
(185) |
Dec
(207) |
2004 |
Jan
(108) |
Feb
(171) |
Mar
(207) |
Apr
(113) |
May
(22) |
Jun
(53) |
Jul
(69) |
Aug
(43) |
Sep
(34) |
Oct
(182) |
Nov
(101) |
Dec
(61) |
2005 |
Jan
(86) |
Feb
(45) |
Mar
(106) |
Apr
(67) |
May
(70) |
Jun
(47) |
Jul
(19) |
Aug
(34) |
Sep
(24) |
Oct
(45) |
Nov
(20) |
Dec
(58) |
2006 |
Jan
(21) |
Feb
(21) |
Mar
(16) |
Apr
(24) |
May
(24) |
Jun
(47) |
Jul
(20) |
Aug
(8) |
Sep
(13) |
Oct
(7) |
Nov
(23) |
Dec
(2) |
2007 |
Jan
|
Feb
(14) |
Mar
(3) |
Apr
(11) |
May
(1) |
Jun
(15) |
Jul
(2) |
Aug
(5) |
Sep
(10) |
Oct
(5) |
Nov
(1) |
Dec
|
2008 |
Jan
|
Feb
(13) |
Mar
(13) |
Apr
(4) |
May
(2) |
Jun
(1) |
Jul
(5) |
Aug
(7) |
Sep
(2) |
Oct
(14) |
Nov
(11) |
Dec
(12) |
2009 |
Jan
(30) |
Feb
(4) |
Mar
(16) |
Apr
(9) |
May
(9) |
Jun
(7) |
Jul
(6) |
Aug
(3) |
Sep
(14) |
Oct
(8) |
Nov
(12) |
Dec
(9) |
2010 |
Jan
(4) |
Feb
(27) |
Mar
(6) |
Apr
(4) |
May
(3) |
Jun
(13) |
Jul
(6) |
Aug
(15) |
Sep
(15) |
Oct
(12) |
Nov
(11) |
Dec
(9) |
2011 |
Jan
(12) |
Feb
(11) |
Mar
|
Apr
(3) |
May
|
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(8) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
(2) |
Sep
(7) |
Oct
(7) |
Nov
|
Dec
(4) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
(3) |
Jul
(16) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2014 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mark H. <mh...@ti...> - 2004-10-11 18:42:06
|
On Mon, Oct 11, 2004 at 07:44:58PM +0200, Hurlin Cl?ment wrote: > java -Djava.library.path=/usr/lib/jni/ First > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/gnu/gnome/Program > at First.main(First.java:10) This is caused by not having the gnome jar in your classpath. You need both the classpath set correctly so java finds the java libraries and the LD_LIBRARY_PATH (-D) setting so that they can find the native part of the libraries. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Hurlin <sm...@in...> - 2004-10-11 17:43:11
|
On Monday 11 October 2004 14:16, you wrote: Thank you for your help, The executions crashs immediately with this output : java -Djava.library.path=3D/usr/lib/jni/ First Exception in thread "main" java.lang.NoClassDefFoundError:=20 org/gnu/gnome/Program at First.main(First.java:10) Link to the library doesn't work :-( > Hi, > > Quoting Hurlin Cl=E9ment <sm...@in...>: > > First ,that was hard to compile but it finally works with : > > javac > >-classpath > >/usr/share/java/gtk2.4-2.4.0.jar:/usr/share/java/gnome2.6-2.6.0.jar > >First.java > > That's the correct way to compile. I'll try to get the docs updated about > this soon. > > > Then i try to execute with : > > java -Djava.library.path=3D/usr/lib/jni/ First > > This should work > > > None of these two worked :( , what's wrong ? > > In what way doesn't it work? Could you possibly send any error messages y= ou > get. > > -- > Mark Howard |
From: Mark H. <mh...@ti...> - 2004-10-11 12:17:01
|
Hi, Quoting Hurlin Clément <sm...@in...>: > First ,that was hard to compile but it finally works with : > javac > -classpath > /usr/share/java/gtk2.4-2.4.0.jar:/usr/share/java/gnome2.6-2.6.0.jar > First.java That's the correct way to compile. I'll try to get the docs updated about this soon. > Then i try to execute with : > java -Djava.library.path=/usr/lib/jni/ First This should work > None of these two worked :( , what's wrong ? In what way doesn't it work? Could you possibly send any error messages you get. -- Mark Howard |
From: Hurlin <sm...@in...> - 2004-10-10 22:14:34
|
Hi, I failed in executing the first example of java-gnome 'First' . I'm using= =20 debian and i installed this related packages : ii libglade0-java 2.6.0.1-7 Dummy package to aid upgrade ii libglade2-java 2.6.0.1-7 Java support for libglade gnome interface ii libgnome0-java 2.6.0.1-7 Dummy package to aid upgrade ii libgnome2-java 2.6.0.1-7 Java framework for creating GNOME applica= tio ii libgtk0-java 2.6.0.1-7 Dummy package to aid upgrade ii libgtk2-java 2.6.0.1-7 Gtk framework for Java ii libjava-gnome- 2.6.0.1-7 API docs and example apps for GTK/GNOME j= ava =46irst ,that was hard to compile but it finally works with : javac=20 =2Dclasspath /usr/share/java/gtk2.4-2.4.0.jar:/usr/share/java/gnome2.6-2.6.= 0.jar=20 =46irst.java Then i try to execute with : java -Djava.library.path=3D/usr/lib/jni/ First or java=20 =2DDjava.library.path=3D/usr/lib/jni/libgnomejava2.6.so.2.6.0:/usr/lib/jni/= libgtkjava2.4.so.2.4.0=20 =46irst None of these two worked :( , what's wrong ? Here some info which will maybe help : which java /usr/bin/java java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01) Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode) echo $PATH /home/smelc/kdev3/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games gtk 2.4.0 java-gnome 2.6.0 Thanks in advance Cl=E9ment Hurlin |
From: Rishabh M. <rma...@gm...> - 2004-10-10 18:18:31
|
Hi, Thanks for writing back. I tried using Program.initGnomeUI(I think thats wat u meant) and used showAll on every widget. Yet I get the same error. What I mean by nothing happens is that Once I have opened the Help->About window(all the click events on the menubar are working just fine), No click events are registered on the About window which has just been opened. For example when I click on Close, the window doesnt close, if I click on credits, the new window showing all the credits doesnt open up either. Basically No click events work on the newly opened About window. However, the main window still works just fine. I hope this clears up what I meant by nothing happens. I am attaching my .java file incase you/someone has time to go over it and suggest a solution/workaround. Thanks --Rishabh On Sun, 10 Oct 2004 18:12:23 +0100, Mark Howard <mh...@ti...> wrote: > You definitely need to use Program.UnitGnomeUI -- this will load the static > gnome libraries (so it can find gnome_about_new). What exactly happens when you > say the window opens but nothing can be done with it? > > BTW: you should use showAll() in preference to show() -- in fact, that might > hopefully solve your problem :) > > -- > .''`. Mark Howard > : :' : > `. `' http://www.tildemh.com > `- mh...@de... | mh...@ti... > |
From: Rishabh M. <rma...@gm...> - 2004-10-10 18:10:48
|
Thanks for writing back, but i have managed to slove this problem. My problem now is the About window not accepting any click events. I will reply to the e-mail you sent. Thanks --Rishabh On Sun, 10 Oct 2004 14:47:24 +0100, Mark Howard <mh...@ti...> wrote: > Hi, > > Sorry for taking so long to reply. Do you have a call to showAll() in your code? > > > > On Sun, Sep 19, 2004 at 05:29:21PM -0500, Rishabh Manocha wrote: > > > > public void createMenu() { > > MenuBar bar = new MenuBar(); > > MenuItem child = new MenuItem("File",false); > > Menu file = new Menu(); > > MenuItem quit = new MenuItem("Quit",false); > > quit.addListener(new ItemListener() { > > public void itemEvent(ItemEvent event) { > > fileExit(); > > } > > }); > > file.append(quit); > > child.setSubmenu(file); > > bar.append(child); > > this.app.setMenuBar(bar); > > } > > > > However this does not show a menubar at all. I feel I am so close but > > yet so far. > > -- > .''`. Mark Howard > : :' : > `. `' http://www.tildemh.com > `- mh...@de... | mh...@ti... > |
From: Mark H. <mh...@ti...> - 2004-10-10 17:37:30
|
Hello, A lot has been happening in the java-gnome world over the past week, this email will hopefully let you all know about it. Java-Gnome developers have unfortunately been too busy in real life lately. New developers wanting to help out have had their questions left unanswered and some confused java-gnome users have been getting even more confused due to our lack of good up to date documentation and replies to their questions. We want to change all that. And we are doing. We're making a number of changes to make life easier. So, the changes so far: Bug tracking moved to bugzilla.gnome.org. This gives us a far superior tool for tracking and dealing with bugs in java-gnome. It also makes it easier for gnome developers to get involved. We're going to move all existing reports from the sourceforge system to bugzilla over the next few days. If you have an open bug report, please move it over yourself so we might have more time to answer the report. New website: http://java-gnome.sf.net/cgi-bin/bin/view/ This is still very much under development, but we really would love to hear your views on it - if you think something is missing, or could be said better, please let us know, or just fix it yourself. The website is a wiki, so we would really like everyone to contribute -- please consider giving something back in return for the java-gnome bindings. Binary Packages They're coming. The website will now keep up to date info about them too Release status 2.8.0 has been released, but we didn't make an announcement. We have some big fixes to the build system in cvs and they will be in 2.8.1 release, which will have a release announcement. HintsAndTips A new section to the website. This is where we really want your help. We want any hints and tips for java-gnome newbies and also experienced developers. Absolutely any topic you think is useful. Please give us your tips. If you need advice on how to do something, add it to the hintsandtips section so that someone will tell you how. JavaGnomePrimer Our tutorial at the moment tells you how to write java-gnome apps using our api alone. With tools like glade and eclipse, there are far better ways of developing applications with java-gnome. This primer will perhaps replace the tutorial, telling new users how to do these things. The primer is still very much in need of work -- please consider sparing a few moments to write a section of it, or just review what's already there. Add your comments to the primer itself. That's why we made it into a wiki after all I look forward to seeing lots of changes in the website RecentChanges page and hope that in the future java-gnome can be even more useful for you. http://java-gnome.sf.net/cgi-bin/bin/view/ -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 17:12:34
|
You definitely need to use Program.UnitGnomeUI -- this will load the static gnome libraries (so it can find gnome_about_new). What exactly happens when you say the window opens but nothing can be done with it? BTW: you should use showAll() in preference to show() -- in fact, that might hopefully solve your problem :) -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 17:08:35
|
Hi, Sorry for taking so long to reply. We (java-gnome developers) have been far too busy in real life recently. We're starting to get on top of java-gnome bugs. Hopefully we should look at this in the next couple of weeks. It'll probably be moved to our new bug tracking system (bugzilla.gnome.org) first though. On Thu, Sep 16, 2004 at 07:13:58AM -0000, Jens Reimann wrote: > just wanted to known what you think about the properties patch I submitted? > > didn't hear much about that on the list!?! > > anything I can do?? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 17:06:08
|
On Thu, Sep 09, 2004 at 05:44:23PM +0300, Cristian ANCA wrote: > Can anybody point me to a good tutorial on how to create my own Look and > Feel for Java? Sorry, this list is for java-gnome. This is completely unrelated to swing and "Look and Feel" -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 17:05:10
|
Hi, On Sun, Sep 05, 2004 at 10:45:05AM -0400, Hans Deragon wrote: > configure \ > --prefix=/perm/develtools/java/3rdparty/java-gnome \ > --without-gcj-compile \ > --libdir=/perm/develtools/java/3rdparty/java-gnome/lib > > When I compile, I get: > > /usr/bin/ld: cannot find -lgtkjava2.4 > > I notice on the ld command that the path: > > /perm/develtools/java/3rdparty/java-gnome/lib/jni/ This is a bug. We're obviously using prefix/lib/jni rather than libdir in the gnome makefiles. Please report this to bugzilla.gnome.org Did you manage to get the rest of the library compiled in the end? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 17:02:35
|
The jni.h bugs should be fixed in cvs. May I ask why you want to compile the bindigns yourself? Is there a problem with the standard debian packages? On Sat, Sep 04, 2004 at 04:19:18AM -0400, Lee Connell wrote: > Hello all, > > I have just downloaded the latest java-gnome bindings. I've extracted and > installed all pre-requisites. I go into libgtk-java folder and run > ./configure all goes well. When I do a make or make all it goes through > and then fails complaining that it can't find jni.h which is in > /usr/share/java/j2sdk1.4.2_05/include. Do I need to add this to my $PATH > also? I've tried using CPPFLAGS=-I/usr/share/java/j2sdk1.4.2_05/include > but that didnt help. Any more details needed on my end? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 17:01:00
|
Hi, This looks like a really useful app. Excellent. The only list of apps at the moment is on the website. Please add your to the new website (it's a wiki, anyone can edit it): http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/JavaGnomeApplications -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 16:59:31
|
On Wed, Aug 18, 2004 at 07:57:17AM -0400, Skip Coon wrote: > Is there a mechanism in place for changing window hint properties ? I > am most interested in the _NET_WORKAREA window hint. I don't beieve there is at the moment. Please file a bug on bugzilla.gnome.org -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 16:51:18
|
Hi, Sorry for taking so long to reply. The following page should help answer your question: http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/WhyJavaGnome That page says why to choose java-gnome rather than alternatives. There is a lot more that could be said on that page -- if anyone is reading this who knows what those things are (comparing java-gnoe to alternatives), please add them to the above page. On Mon, Aug 16, 2004 at 01:48:20PM +0200, eClaire wrote: > Hello, > > First, scuse me for my "middle English". > > I think this question have answer somewhere on the web but I didn't find it. > I would like to know what are the advantages to develop with java-gnome > instead of swing, awt or swt. java-gnome is specific to one desktop > manager but swing or others can be executed everywhere. Is there some > functionalities better ? easier? I understood that gtk was included in > java-gnome. gtk can be executed everywhere, contrary to java-gnome is it > better? I have lots of interrogations, scuse me for my low-level questions. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 16:12:39
|
Hi, Sorry for the late reply. Java-Gnome provides an API for writing java applications with gtk or gnome interfaces. Eclipse uses an alternative, SWT, for its interface. If you want to get eclipse to use a bonobo editor, you probably have to use a swt bonobo component. I could be wrong though, so if you'd like to loko at eclipse source more, please feel free to do so. AFAIK, the only eclipse plugin related to java-gnome did not do anything with a java-gnome ui, it just had helper scripts for creating java-gnome projects. Again, I could be completely wrong about this -- unfortunately this eclipse java-gnome plugin is no longer maintained and the developer cannot be found. On Tue, Aug 17, 2004 at 04:42:27PM +0200, Sebastian Menge wrote: > > AFAIK, you would have > > to make modifications to eclipse and possibly also swt to make this work. The > This sounds like a "yes, but ...". So i'm interested in that "but" and > the "AFIAK". Did anyone try to build an eclipse-plugin using java-gnome? > > I would love to contribute to your project. I am a Java-Programmer with > some experience (finishing my Master in CS in October), and get addicted > to free software more and more. I never did open-source development > (mostly since I'm not that good at C++), but this project seems to fit > my skills :-) > -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 16:04:22
|
Hi, Sorry for taking so long to reply. Are you maintaining gstreamer bindings with the gstreamer project, or just as your own project? If you'd like to join java-gnome, we'd welcome you. On Tue, Sep 07, 2004 at 04:07:12AM +0200, Ole Andr? Vadla Ravn?s wrote: > So I ask, wouldn't it be possible to come up with some sort of static > javatypeFromGtktype kind of method on all GObjects that could be > overridden where such a translation would be needed? Or something > similar... Sounds like a good idea. I think the function we're using now was written when we only had gtk bindings and so it was perfectly sufficient. Please file a bug in bugzilla.gnome.org (java-gnome module) and we'll take a look at it (with a patch, if at all possible) -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-10 13:48:11
|
Hi, Sorry for taking so long to reply. Do you have a call to showAll() in your code? On Sun, Sep 19, 2004 at 05:29:21PM -0500, Rishabh Manocha wrote: > > public void createMenu() { > MenuBar bar = new MenuBar(); > MenuItem child = new MenuItem("File",false); > Menu file = new Menu(); > MenuItem quit = new MenuItem("Quit",false); > quit.addListener(new ItemListener() { > public void itemEvent(ItemEvent event) { > fileExit(); > } > }); > file.append(quit); > child.setSubmenu(file); > bar.append(child); > this.app.setMenuBar(bar); > } > > However this does not show a menubar at all. I feel I am so close but > yet so far. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Mark H. <mh...@ti...> - 2004-10-05 19:51:50
|
On Mon, Oct 04, 2004 at 09:53:20PM -0500, Jerry Haltom wrote: > HACKERS? I missed that ml. Why's it not listed on the web page? That's one of the actions arising from the email thread on that list. Jeff's in charge of the mailing lists and sourceforge project, so he'll have to sort out the lists themselves, but I've certainly added the mailing list to the wiki website. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Andrew C. <an...@op...> - 2004-10-05 03:05:43
|
On Mon, 2004-04-10 at 21:53 -0500, Jerry Haltom wrote: > HACKERS? I missed that ml. Why's it not listed on the web page? Bloody good question. I've suggested that java-gnome... a) move its mailing lists to gnome.org b) make both lists available (if -hackers is moderated to join, so be it, but at least publicize it). and c) clearly differentiate what audiences the lists are for. ... but I'm not sure what is involved technically, or who has to be nudged at GNOME for this to happen. There also seems to be an undercurrent that sourceforge isn't the greatest place to host bug tracking, so perhaps that should move to bugzilla.gnome.org as well. No reason not to leave the masthead banner home page at sourceforge, of course. AfC Sydney |
From: Jerry H. <wa...@la...> - 2004-10-05 02:53:37
|
HACKERS? I missed that ml. Why's it not listed on the web page? |
From: Andrew C. <an...@op...> - 2004-10-05 02:34:06
|
Just FYI: On Mon, 2004-04-10 at 20:38 +0100, Mark Howard wrote: > I sent a message to java-gnome hackers mailing list... ^^^^^^^^^^^^^^^^^^ If you don't know what Mark and Jerry are talking about, there's a thread on java-gnome-hackers right now which is discussing java-gnome. It started out wondering where j-g was going, and resulted in expressions of support and quite a bit of activity.=20 For anyone on the java-gnome-developers list but not the -hackers one, you might be interested in reading the thread.=20 Sourceforge isn't the nicest archiver, but the thread is at http://sourceforge.net/mailarchive/forum.php?thread_id=3D5680418&forum_id= =3D11301 AfC Sydney --=20 Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers http://www.operationaldynamics.com/ |
From: Jerry H. <jh...@fe...> - 2004-10-04 22:25:46
|
On Mon, 2004-10-04 at 19:28 +0000, Tiago Cogumbreiro wrote: > Talking about JNI, you might be interested in GDirect: > http://www.peakpeak.com/~tromey/blog/2004/05/14#gdirect > > Seems like your idea, if what you want is to get rid of it. This is nearly exactly what I'm talking about... in fact my approach uses libffi also. Right now I'm working on it for GObject specifically, not a general purpose JNI replacement. Right now my approach is using Java 1.5 metadata and annotations to decorate Java classes about how they link up to their GObject equivilent. For instance, the bindings to GtkObject might look like this: @GBindClass(Library="gtk-2.0", Name="GObject", TypeSymbol="gtk_object_get_type") public class GtkObject extends GObject { @GBindMethod(Name="do_something") public abstract void doSomething(); } At runtime, the metadata for this class would be detected, the specified library would be loaded with dlopen(), the TypeSymbol would be called in order to return the GType, and all the method's marked @GBindMethod would be replaced with proxy's to the underlying method calls. Since there is no method introspection: at compile time, the .h files would be scanned, and the .class file would be "enhanced" with additional metadata that defines what byte offsets the function pointers for the methods are at. Creating a new GObject would be as simple as overriding an existing wrapper. public class MyNewGObject extends GObject { public void doSomething() { // do stuff } } This would create a new GObject in the GObject system with a name like "__java__package_name_Foo", set up that it inherits from GObject, and override GObject's methods with libffi generated stubs. I'm working on some prototype code for this now, to generate GObjects from thin air at runtime, and to hook up method/signal calls. I don't have many outstanding issues to figure out before I actually get coding. Anyways, please comment. |
From: Mark H. <mh...@ti...> - 2004-10-04 19:38:40
|
Hi Jerry, I've decided to put a little more effort into java-gnome. After writing the blog entry, I sent a message to java-gnome hackers mailing list. There is a tremendous amount of support for java-gnome, it seems that we've just been failing to channel that into productive work recently. We all have ideas about where improvements can be made and things are looking very positive in this respect -- we are already starting to make them. If you're interested, please go to our temporary developmental website (I only created it a couple of days ago) at http://java-gnome.sf.net/cgi-bin/bin/view and click on the development page. Feel free to add you own ideas there. On Mon, Oct 04, 2004 at 12:14:57PM -0500, Jerry Haltom wrote: > count them on one hand. But library's? Hundreds of not thousands. Just That's a really good point. Also for companies working with java-gnome, that really is something we should think about more. AFAIK, lots of people really want gnome to be adopted more in business. If java-gnome can help with that, then we might be able to help a lot by modifying our website a little. One thing I really would be interested in is extending the applications page of the website -- having some user (developer really) comments would be really helpful, even if it's just a couple of lines saying "I work for a company that does foo; we use java-gnome internally for x, y, z; we chose to develop with java-gnome because..." -- Do you think you might be able to start us off with that? > Hacking on Java-Gnome is something I am really interested in. I have a > lot of ideas I am working on right now. A major stumbling block I am > hitting is the build system you mention. It is a pain, but I feel we are really close now. The cvs modules reorganisation have made a huge impact. New developers getting involved will also be easier in the next 6 months since we will be developing against a stable gtk+ release. > I find the need to write JNI bindings for each widget that you want to > wrap unnecessary and excessive. I would like to create GObjects from > within Java (overriding TreeModel), so I am working on these things. Is > anybody else? (Being able to inspect GObject vmethods would sure > help!!!) I've heard other comments about people working on TreeModels, but don't know any details. > After this, integrating a Glade designer into Eclipse should be a snap. > One I'd be happy to work on. This is where it's at guys! We have an > amazing potential for RAD that I can only classify as "kind of like VB". > Quick prototyping and usage of widgets and forms. The difference being > Java doesn't suck. ;) Wow. That would be really amazing. > More visibility would help. It took me awhile to realize that there was > even a Java-Gnome. Any tips on how to do this? > If you'd like to hear some more of my ideas about getting rid of JNI, > let me know. I have a lot of them. :0 Sure, sounds very interesting, especially if it might make it easier to develop the bindings -- so that we can concentrate on designing a really good API. Please add them as a new page on http://java-gnome.sf.net/cgi-bin/bin/view/ , linked to the development page. That way your ideas won't get lost in email archives. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Tiago C. <cog...@li...> - 2004-10-04 19:26:01
|
Talking about JNI, you might be interested in GDirect: http://www.peakpeak.com/~tromey/blog/2004/05/14#gdirect Seems like your idea, if what you want is to get rid of it. On Mon, 2004-10-04 at 17:14, Jerry Haltom wrote: > You seem to think Java is not used for Open Source work. You may in fact > be correct at least for highly visible applications. How many public > Desktop applications do you know of that are written in Java? I can > count them on one hand. But library's? Hundreds of not thousands. Just > look at Jakarta! Hibernate, Castor. There are tons of examples. > > Behind the scene, Java is used immensely. Desktop applications inside > corporations, when not built using some Microsoft language, are almost > always Java. You rarely hear about these unless you work for a company > in question. > > Where does Java-Gnome fit in? I'm not entirely sure. I recently > discovered it while looking for a solution for my company's in house > applications. We were originally however going to go with SWT. However, > what changed our minds was the potential for RAD that Java-Gnome offers. > Combined with Glade it is an unbeatable combination. I also think the > API is quite a bit cleaner than SWT. I really like it! > > Hacking on Java-Gnome is something I am really interested in. I have a > lot of ideas I am working on right now. A major stumbling block I am > hitting is the build system you mention. > > I find the need to write JNI bindings for each widget that you want to > wrap unnecessary and excessive. I would like to create GObjects from > within Java (overriding TreeModel), so I am working on these things. Is > anybody else? (Being able to inspect GObject vmethods would sure > help!!!) > > After this, integrating a Glade designer into Eclipse should be a snap. > One I'd be happy to work on. This is where it's at guys! We have an > amazing potential for RAD that I can only classify as "kind of like VB". > Quick prototyping and usage of widgets and forms. The difference being > Java doesn't suck. ;) > > More visibility would help. It took me awhile to realize that there was > even a Java-Gnome. > > If you'd like to hear some more of my ideas about getting rid of JNI, > let me know. I have a lot of them. :0 > > > Jerry Haltom > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |