java-gnome-developer Mailing List for The java-gnome language bindings project (Page 49)
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: Abcdefg <ab...@so...> - 2005-03-17 21:39:21
|
--------- Oorspronkelijk bericht -------- Van: Luca Merolla <luc...@ti...> Naar: jav...@li... <jav...@li...> Onderwerp: [Java-gnome-developer] How to compile native with gcj Datum: 17/03/05 22:24 > Hi, > I'm trying to compile a sample program natively with gcj but I got this > annoying message: > ... > How can I solve this? > Thanks in advance > Hi, I had the same problem some time ago because the name has changed, it should be -lgtkjava-2.6 and -lgladejava2.8 David |
From: Luca M. <luc...@ti...> - 2005-03-17 20:55:46
|
Hi, I'm trying to compile a sample program natively with gcj but I got this annoying message: make native gcj -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/= lib/glade2.8.jar -lgtkjar2.6 -lgnomejar2.8 --main=3Dcom.osnetwork.Main -o = bin/jquote src/com/osnetwork/Main.java /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: = cannot find -lgtkjar2.6 collect2: ld returned 1 exit status make: *** [native] Error 1 I have used the Makefile from java-gnome website made by NickG, I just changed this variables: INCLUDES=3D/usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/= lib/glade2.8.jar LIBS=3D-lgtkjar2.6 -lgladejar2.8=20 LIBPATH=3D/usr/lib FILES=3Dsrc/com/osnetwork/Main.java MAIN=3Dcom.osnetwork.Main TARGET=3Dbin/jquote How can I solve this? Thanks in advance --=20 Luca Merolla <luc...@ti...> |
From: Joao V. <jvi...@ya...> - 2005-03-17 17:43:46
|
Actually... don't search for that part in the file... (i've got a feeling you won't find that part)... try searching for this part: } catch (Exception e) { throw new InvocationTargetException(e, "ListenerDelegate.create failure"); } and replace it with: } catch (Exception e) { e.printStackTrace(); throw new InvocationTargetException(e, "ListenerDelegate.create failure"); } Thanks, J.V. --- Joao Victor <jvi...@ya...> wrote: > Still that bug... :/ > > Hey Leonardo, the version of libglade-java you're using, did you build it from sources or did > you > install it from some rpm/deb package? Because i would like you to try something, to help us find > what's the bug exactly... > > (The problem we're having is that most of us can't reproduce this bug... and the message > "ListenerDelegate.create failure" doesn't tell us much... so we need more info from the ppl who > can reproduce it) > > ... here's what i'd like you to do: get the source of the version you're using, open the file > 'src/java/org/gnu/glade/ListenerDelegate.java' in an editor, and search for this part of the > file: > > } catch (InvocationTargetException e) { > System.err.println("ListenerDelegate.fireEvent("+event+"): "+ > e.getTargetException()); > } > > When you find it, replace it with this: > > } catch (InvocationTargetException e) { > System.err.println("ListenerDelegate.fireEvent("+event+"): "+ > e.getTargetException()); > e.getTargetException().printStackTrace(); > } > > Now compile/build/install libglade-java, and try it. If you get the same error (i hope you do!), > now you'll probably see more error msgs. So post them to us! > > Thanks, > J.V. > > > > > --- Leonardo Marques <leo...@gm...> wrote: > > Error java.lang.reflect.InvocationTargetException: > > ListenerDelegate.create failure > > > > Class: > > > > package org.gnome.gjobs; > > > > import java.io.FileNotFoundException; > > import java.io.IOException; > > > > import org.gnu.glade.GladeXMLException; > > import org.gnu.glade.LibGlade; > > import org.gnu.gtk.Gtk; > > > > public class Principal { > > > > LibGlade glade; > > > > public Principal() throws GladeXMLException, FileNotFoundException, > > IOException { > > glade = new LibGlade("gtk/gjobs.glade",this); > > } > > > > public static void main(String[] args) { > > > > Principal principal; > > Gtk.init(args); > > > > try { > > principal = new Principal(); > > } catch (GladeXMLException e) { > > e.printStackTrace(); > > } catch (FileNotFoundException e) { > > e.printStackTrace(); > > } catch (IOException e) { > > e.printStackTrace(); > > } > > > > Gtk.main(); > > } > > > > public void on_button3_clicked() { > > System.out.println("clicado"); > > } > > } > > > > -- > > Leonardo Marques > > Brasília - DF > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > > _______________________________________________ > > java-gnome-developer mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > > > > > > > Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ > Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |
From: Joao V. <jvi...@ya...> - 2005-03-17 17:34:58
|
Still that bug... :/ Hey Leonardo, the version of libglade-java you're using, did you build it from sources or did you install it from some rpm/deb package? Because i would like you to try something, to help us find what's the bug exactly... (The problem we're having is that most of us can't reproduce this bug... and the message "ListenerDelegate.create failure" doesn't tell us much... so we need more info from the ppl who can reproduce it) ... here's what i'd like you to do: get the source of the version you're using, open the file 'src/java/org/gnu/glade/ListenerDelegate.java' in an editor, and search for this part of the file: } catch (InvocationTargetException e) { System.err.println("ListenerDelegate.fireEvent("+event+"): "+ e.getTargetException()); } When you find it, replace it with this: } catch (InvocationTargetException e) { System.err.println("ListenerDelegate.fireEvent("+event+"): "+ e.getTargetException()); e.getTargetException().printStackTrace(); } Now compile/build/install libglade-java, and try it. If you get the same error (i hope you do!), now you'll probably see more error msgs. So post them to us! Thanks, J.V. --- Leonardo Marques <leo...@gm...> wrote: > Error java.lang.reflect.InvocationTargetException: > ListenerDelegate.create failure > > Class: > > package org.gnome.gjobs; > > import java.io.FileNotFoundException; > import java.io.IOException; > > import org.gnu.glade.GladeXMLException; > import org.gnu.glade.LibGlade; > import org.gnu.gtk.Gtk; > > public class Principal { > > LibGlade glade; > > public Principal() throws GladeXMLException, FileNotFoundException, > IOException { > glade = new LibGlade("gtk/gjobs.glade",this); > } > > public static void main(String[] args) { > > Principal principal; > Gtk.init(args); > > try { > principal = new Principal(); > } catch (GladeXMLException e) { > e.printStackTrace(); > } catch (FileNotFoundException e) { > e.printStackTrace(); > } catch (IOException e) { > e.printStackTrace(); > } > > Gtk.main(); > } > > public void on_button3_clicked() { > System.out.println("clicado"); > } > } > > -- > Leonardo Marques > Brasília - DF > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://mail.yahoo.com.br/ |
From: Leonardo M. <leo...@gm...> - 2005-03-17 16:36:38
|
Error java.lang.reflect.InvocationTargetException: ListenerDelegate.create failure Class: package org.gnome.gjobs; import java.io.FileNotFoundException; import java.io.IOException; import org.gnu.glade.GladeXMLException; import org.gnu.glade.LibGlade; import org.gnu.gtk.Gtk; public class Principal { =09LibGlade glade; =09 =09public Principal() throws GladeXMLException, FileNotFoundException, IOException { =09=09glade =3D new LibGlade("gtk/gjobs.glade",this); =09} =09 =09public static void main(String[] args) { =09=09 =09=09Principal principal; =09=09Gtk.init(args); =09=09 =09=09try { =09=09=09principal =3D new Principal(); =09=09} catch (GladeXMLException e) { =09=09=09e.printStackTrace(); =09=09} catch (FileNotFoundException e) { =09=09=09e.printStackTrace(); =09=09} catch (IOException e) { =09=09=09e.printStackTrace(); =09=09} =09=09 =09=09Gtk.main(); =09} =09 =09public void on_button3_clicked() { =09=09System.out.println("clicado"); =09} } --=20 Leonardo Marques=20 Bras=EDlia - DF |
From: Jeff M. <ku...@gm...> - 2005-03-17 14:12:47
|
This morning our java-gnome project in gnome cvs was split into nine separate toplevel modules. This change was made to more accurately reflect the individual projects with their individual release schedules. All projects still fall under the Java-GNOME project - just cvs access has changed. To learn how to get the code from cvs you can go to our GetJavaGnome page on the wiki. http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/GetJavaGnome#Development -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Jeff M. <ku...@gm...> - 2005-03-16 23:40:50
|
The Java-GNOME Team is please to announce the next stable release of libgtk-java. This release contains the following bug fixes: * make distclean was removing Makefile.in and configure * Fixed bug setting colors on Widget * Fixed callbacks to static methods * Fixed error handling in IconTheme? * Fixed error in listFaces in pango.FontFamily * Added native bindings for ToggleToolButton? * Bugzilla 166682 - TreeViewEvent?.getTreeIter returns 'null' * Bugzilla 168217 - Dialog.addButton() should receive StockItems? * Bugzilla 168014 - Missing Window.setIconList * Bugzilla 155013 - TextBuffer?.createTag could faile * Bugzilla 155017 - double-click event? You can download the source tarballs from the GNOME ftp site at: http://ftp.gnome.org/pub/GNOME/sources/libgtk-java/2.6/ About Java-GNOME =============== Java-GNOME is a collection of Java language bindings for the GNOME Desktop Environment. They provide a high-level, object oriented API allowing developers to quickly build desktop applications. When combined with gcj and eclipse they deliver a very compelling GNOME development environment. To learn more about Java-GNOME and the additional bindings we provide please visit our web site at: http://java-gnome.sourceforge.net -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Jeff M. <ku...@gm...> - 2005-03-12 15:33:08
|
I will be releasing version 2.6.1 of libgtk-java next Wednesday. At that point two significant events will occur. First of all libgtk-java will be moving into its own project in cvs. Secondly I will be creating the maintenance branch for continued 2.6.x support. This means that cvs head will become our development area where we will work towards our libgtk-java 2.8 release. -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Andrew C. <an...@op...> - 2005-03-12 01:35:13
|
On Fri, 2005-11-03 at 12:16 -0600, Clint Allen wrote: > I've got some singleton classes which extend LibGlade. The only insight on the specific crash you're encountering is that most people tend to use the LibGlade constructor with "this" to specify where the signals are going and what not [though, I've come to realize that it's generally more powerful (though not as easy) to use java-gnome listener/event pairs]. Maybe passing your "InputEditLogic" instance is the problem. For what it's worth, I've been addressing this sort of issue by a) naming my classes as WhateverWindow, and b) having the libglade call just be a part of the constructor for WhateverWindow, and saving the returned object in an instance variable. eg: private LibGlade _glade = null; WhateverWindow() { try { _glade = new LibGlade("share/whatever.glade", this); ... <shrug> Works for me; an instance field seems an appropriate place for it, and it saves having to code up the singleton pattern. AfC -- Andrew Frederick Cowie http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Clint A. <ca...@au...> - 2005-03-11 18:16:34
|
This could just be me doing something wrong, but I've got a strange problem here. I've got some singleton classes which extend LibGlade. As part of my testing, I'm instantiating them when the Glade XML data file doesn't exist, so they should throw FileNotFoundException or the like. And they do, the FIRST time. The second time, the entire JVM crashes, leaving a big trace file (I attached one for ya'll to look at). Here's an example of the code in question: public final class InputEditGlade extends LibGlade { /* The Glade data file (doesn't exist, so constructor should throw * an exception). */ private static final String GLADE_FILE = "glade/inputedit.glade"; // The singleton instance. private static InputEditGlade _instance = null; // Singleton constructor. private InputEditGlade() throws GladeXMLException, FileNotFoundException, IOException { super(GLADE_FILE, new InputEditLogic()); } /** * @return * The singleton instance of this class. */ public static InputEditGlade getInstance() { if (_instance == null) { try { _instance = new InputEditGlade(); } catch (final GladeXMLException e) { Notifier.getInstance().exception(e, "An exception occurred " + "while trying to parse the Input/Edit Glade " + "file.", Level.ERROR); } catch (final FileNotFoundException e) { Notifier.getInstance().exception(e, "The input/edit Glade"+ " file could not be found.", Level.ERROR); } catch (final IOException e) { Notifier.getInstance().exception(e, "An I/O exception occurred " + "while trying to read the Input/Edit Glade " + "file.", Level.ERROR); } catch (final Exception e) { Notifier.getInstance().exception(e, "An unknown exception occurred while trying" + " to load the Glade file.", Level.ERROR); } } return _instance; } } The first time through, the constructor properly throws an exception. The second time through is when the crash happens. I've looked at the source for the LibGlade class, as well as the libglade C sources, and I can't figure this one out. Any ideas? |
From: Joao V. <jvi...@ya...> - 2005-03-09 13:40:22
|
--- Andrew Cowie <an...@op...> wrote: > Solution 1: > > Use a real [ie, Sun or IBM] Java VM, not GCJ. > Andrew, in the context of Java-Gnome there's really nothing the Sun's VM can do that GCJ/Kaffe can't do, really. I know you know that, because you said this yourself in the email. So Sun's VM is not a solution, because GCJ/Kaffe is not the problem here. As for being "pro-GCJ", here goes my opinion (which is not necessarily the opinion of the JG team): I want the free VMs to be as good as the proprietary ones, i really do. And because i want that a lot, i wanna help to make that happen, i don't want to just sit and wait. But how can i help? Well, if i would contribute with code to the free VMs that would be perfect, that would be a great contribution. But i don't think i'm that good hacker and i'm not very interested in digging into the code of the VMs - so i take another path: i help to test and give the GCJ/Kaffe team some feedback by actually _using_ their VMs. (Is there anything more fulfilling in free software development than to see people actually using the software you made and giving feedback?) Plus, by testing our code in the free VMs we garantee JG will always run in the free VMs, which is important if you want JG to get into the distros and succeed as a viable free development platform. Cheers, J.V. _______________________________________________________ Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis |
From: Jeff M. <ku...@gm...> - 2005-03-09 11:50:34
|
On Wed, 09 Mar 2005 12:43:14 +0100, Ralph Henneberger <ra...@gm...> wrote: > This works fine on my gentoo with my > > gcc-Version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, > ssp-3.4.3.20050110-0, pie-8.7.7) > > I run the the Example, i very happy :-) I am glad it is working now!! > > Thanks Thanks !!!! > Ralph > > -- > Ralph Henneberger <ra...@gm...> > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Ralph H. <ra...@gm...> - 2005-03-09 11:43:29
|
Am Mittwoch, den 09.03.2005, 19:57 +1100 schrieb Andrew Cowie: > Solution 0: > > Make sure you're running java-gnome-2.8.3 . It depends on the current > stable releases of the lib*java series. (See my earlier email). Ok, i re-emerge java-gnome-2.8.3 with the new ebuilds. Changed me Makefile to: ------------------------- LIBS=-lgtkjava-2.4 -lgladejava-2.8 -lgnomejava-2.8 ------------------------- This works fine on my gentoo with my gcc-Version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7) I run the the Example, i very happy :-) Thanks Thanks !!!! Ralph -- Ralph Henneberger <ra...@gm...> |
From: Mark H. <mh...@ti...> - 2005-03-09 09:15:00
|
Quoting Andrew Cowie <an...@op...>: > That's because I haven't released a set of ebuilds for gtk2.6 or > lib*java 2.10 yet, so the fact you're mixing gtk 2.6 with java-gnome 2.8 > stuff is at least part of your problem. I started work on new debian packages last night -- libgtk-java 2.6.0 seems to work fine with libgnome-java 2.8.3.1, etc. -- .""`. Mark Howard : :" : `. `" http://www.tildemh.com `- mh...@de... | mh...@ti... |
From: Andrew C. <an...@op...> - 2005-03-09 08:58:05
|
On Wed, 2005-09-03 at 08:25 +0100, Ralph Henneberger wrote: > libgcj failure: Duplicate class registration: java.lang.Class Solution 0: Make sure you're running java-gnome-2.8.3 . It depends on the current stable releases of the lib*java series. (See my earlier email). Solution 1: Use a real [ie, Sun or IBM] Java VM, not GCJ. Solution 2: The actual Java bytecode interpreter from GCJ is "gij", not "gcj". "gcj" (without -C) means compile to native code. `which gij` on my system reports "/usr/i686-pc-linux-gnu/gcc-bin/3.4.3/gij" . HINT 1: make sure gcc-config is set right. HINT 2: Be using >=GCC 3.4.3 [Personal opinion: the bias in the examples towards GCJ is premature, in my opinion. Once GCJ 4 stabilizes, we'll be closer. java-gnome DOES run under gcj 3.4, however, and the applications I write build under it, which is awesome. I just don't much care for the error reporting you get from GCJ. Real Java VMs are cleaner with their compiler errors and exceptions stacks] Solution 3: I think I've seen something like your "Duplicate class" problem. It happened when when java-gnome was compiled with one version of GCJ/libgcj, but run against a different version of libgcj If you have upgraded your GCC (where GCJ comes from) since you last built java-gnome, re-emerge. AfC Sydney NOTE: libgtkjava-2.6 AND java-gnome-2.10 ARE NOT YET AVAILABLE ON GENTOO. THEY DEPEND ON GNOME 2.10, WHICH IS GOING INTO THE TREE TODAY. THEN, AND ONLY THEN, CAN WE RELEASE EBUILDS FOR java-gnome. EVEN THEN, THEY WILL BE HARD MASKED UNTIL GNOME 2.10 MOVES INTO ~arch. Give us a couple days, friends. We'll get you there. |
From: Ralph H. <ra...@gm...> - 2005-03-09 07:25:33
|
Am Dienstag, den 08.03.2005, 16:33 -0500 schrieb Jeff Morgan: Hi, first, Sorry for my bad english! Have a different problem with the example: My Makefile: ------------------------------------------- # Set Java compiler and runtime #JAVAC=javac JAVAC=gcj -C #JAVA=java JAVA=gij GCJ=gcj # Edit these variables, include only the jars you use INCLUDES=/usr/share/java-gnome/lib/gtk2.4.jar:/usr/share/java-gnome/lib/gnome2.8.jar:/usr/share/java-gnome/lib/glade2.8.jar LIBS=-lgtkjar2.4 -lgnomejar2.8 -lgladejar2.8 LIBPATH=/usr/lib FILES=Example.java MAIN=Example TARGET=Example ------------------------------------------- i run "make native" , then i have a binary Example. Then i run ./Example The Problem is this Error... libgcj failure: Duplicate class registration: java.lang.Class Ralph -- Ralph Henneberger <ra...@gm...> |
From: Andrew C. <an...@op...> - 2005-03-09 00:53:06
|
On Tue, 2005-08-03 at 20:24 +0100, Abcdefg wrote: > could the problem be that I have libglade-java version 2.8 and gtk+-2.6? I > haven't found an ebuild for the 2.10 version That's because I haven't released a set of ebuilds for gtk2.6 or lib*java 2.10 yet, so the fact you're mixing gtk 2.6 with java-gnome 2.8 stuff is at least part of your problem. [Someone contributed a bug with a libgtk-java 2.6 ebuild. I eyeballed it, but I haven't tested yet. Is that what you're using? The fact you're having problems with it isn't a great sign, but I suspect your real issue is API mixing, as mentioned] The known-good Gentoo ebuilds are listed here: http://www.operationaldynamics.com/reference/software/gentoo/#java-gnome Give it a few days, and I'll have new ebuilds for java-gnome 2.10 in there. AfC Sydney -- Andrew Frederick Cowie Managing Director Sydney: +61 2 9977 6866 New York: +1 646 472 5054 Toronto: +1 416 848 6072 London: +44 207 1019201 OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers specializing in technology strategy, changes & upgrades, enterprise architecture, and performance improvement for mission critical systems & the people who run them. http://www.operationaldynamics.com/ |
From: Jeff M. <ku...@gm...> - 2005-03-08 21:33:17
|
On Tue, 8 Mar 2005 21:50:50 +0100, Abcdefg <ab...@so...> wrote: > Ok, I changed the Makefile, it recognises the jar files now but gives > another error: > > gcj -classpath > /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar > -gtkjava-2.6 -gladejava-2.8 --main=Example -o Example Example.java you are missing the l (link) - should be -lgtkjava-2.6. > jc1: warning: `tkjava-2.6': unknown or unsupported -g option > jc1: warning: `ladejava-2.8': unknown or unsupported -g option > cc1: warning: `tkjava-2.6': unknown or unsupported -g option > cc1: warning: `ladejava-2.8': unknown or unsupported -g option > /tmp/ccAJnbWh.o(.text+0x60): In function > `Example::main(JArray<java::lang::String*>*)': > : undefined reference to > `org::gnu::gtk::Gtk::init(JArray<java::lang::String*>*)' > /tmp/ccAJnbWh.o(.text+0xf0): In function > `Example::main(JArray<java::lang::String*>*)': > : undefined reference to `org::gnu::gtk::Gtk::main()' > /tmp/ccAJnbWh.o(.text+0x147): In function `Example::Example[in-charge]()': > : undefined reference to `org::gnu::glade::LibGlade::class$' > /tmp/ccAJnbWh.o(.text+0x167): In function `Example::Example[in-charge]()': > : undefined reference to > `org::gnu::glade::LibGlade::LibGlade[in-charge](java::lang::String*, > java::lang::Object*)' > /tmp/ccAJnbWh.o(.text+0x1a7): In function `Example::Example[in-charge]()': > : undefined reference to `org::gnu::gtk::Entry::class$' > /tmp/ccAJnbWh.o(.data+0x4): undefined reference to > `org::gnu::gtk::Entry::class$' > collect2: ld returned 1 exit status > make: *** [native] Error 1 > > Do you have an idee what that means? > > Thanks, > David > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Abcdefg <ab...@so...> - 2005-03-08 20:50:48
|
Ok, I changed the Makefile, it recognises the jar files now but gives another error: gcj -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar -gtkjava-2.6 -gladejava-2.8 --main=Example -o Example Example.java jc1: warning: `tkjava-2.6': unknown or unsupported -g option jc1: warning: `ladejava-2.8': unknown or unsupported -g option cc1: warning: `tkjava-2.6': unknown or unsupported -g option cc1: warning: `ladejava-2.8': unknown or unsupported -g option /tmp/ccAJnbWh.o(.text+0x60): In function `Example::main(JArray<java::lang::String*>*)': : undefined reference to `org::gnu::gtk::Gtk::init(JArray<java::lang::String*>*)' /tmp/ccAJnbWh.o(.text+0xf0): In function `Example::main(JArray<java::lang::String*>*)': : undefined reference to `org::gnu::gtk::Gtk::main()' /tmp/ccAJnbWh.o(.text+0x147): In function `Example::Example[in-charge]()': : undefined reference to `org::gnu::glade::LibGlade::class$' /tmp/ccAJnbWh.o(.text+0x167): In function `Example::Example[in-charge]()': : undefined reference to `org::gnu::glade::LibGlade::LibGlade[in-charge](java::lang::String*, java::lang::Object*)' /tmp/ccAJnbWh.o(.text+0x1a7): In function `Example::Example[in-charge]()': : undefined reference to `org::gnu::gtk::Entry::class$' /tmp/ccAJnbWh.o(.data+0x4): undefined reference to `org::gnu::gtk::Entry::class$' collect2: ld returned 1 exit status make: *** [native] Error 1 Do you have an idee what that means? Thanks, David |
From: Jeff M. <ku...@gm...> - 2005-03-08 20:29:57
|
On Tue, 8 Mar 2005 20:24:37 +0100, Abcdefg <ab...@so...> wrote: > Thanks for your help, but it doesn't work yet, I changed my Makefile to > this: > > JAVAC=gcj -C > JAVA=gij > GCJ=gcj > > INCLUDES=/usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar > LIBS=-lgtkjava2.6 -lgladejava2.8 Should be gtkjava-2.6, etc. Sorry for the incorrect posting earlier. |
From: Abcdefg <ab...@so...> - 2005-03-08 19:24:37
|
Thanks for your help, but it doesn't work yet, I changed my Makefile to this: JAVAC=gcj -C JAVA=gij GCJ=gcj INCLUDES=/usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar LIBS=-lgtkjava2.6 -lgladejava2.8 LIBPATH=/usr/lib FILES=Example.java MAIN=Example TARGET=Example all: ${JAVAC} -classpath ${INCLUDES} ${FILES} run: ${JAVA} -Djava.library.path=${LIBPATH} -classpath .:${INCLUDES} ${MAIN} native: ${GCJ} -classpath ${INCLUDES} ${LIBS} --main=${MAIN} -o ${TARGET} ${FILES} clean: rm -f *.class But I still have the same errors as described in the last mail Also note that the error happens both with gcj and the Makefile and the 'normal' java (blackdown) because when I type javac Example.java and than java -classpath ".:/usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar This is the error: Exception in thread "main" java.lang.NoSuchMethodError: org.gnu.gtk.Widget.makeWidget(I)Lorg/gnu/gtk/Widget; at org.gnu.glade.LibGlade.getWidget(LibGlade.java:202) at org.gnu.glade.LibGlade.connect(LibGlade.java:171) at org.gnu.glade.LibGlade.glade_xml_signal_autoconnect_full(Native Method) at org.gnu.glade.LibGlade.<init>(LibGlade.java:95) at org.gnu.glade.LibGlade.<init>(LibGlade.java:60) at Example.<init>(Example.java:19) at Example.main(Example.java:11) could the problem be that I have libglade-java version 2.8 and gtk+-2.6? I haven't found an ebuild for the 2.10 version Thanks, David |
From: Jeff M. <ku...@gm...> - 2005-03-08 18:45:03
|
On Tue, 8 Mar 2005 19:22:22 +0100, Abcdefg <ab...@so...> wrote: > Hi, > > I updated my gentoo install (emerge -uD world) but now java gtk does not > work anymore :( I think it has someting to do with gtk that updated form 2.4 > to 2.6 ... > INCLUDES=/usr/share/libgnome-java-2.8/lib/gnome2.8.jar:/usr/share/libgtk-java-2.4/lib/gtk2.4.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar > LIBS=-lgtkjar2.6 -lgladejar2.8 > LIBPATH=/usr/lib > FILES=Example.java > MAIN=Example > TARGET=Example Two simple issues here: 1) You are using the gtk 2.4 jarfile but trying to link with the gtk2.6 shared object. Change to use the 2.6 jar file please. 2) A while ago (december timeframe i think) we changed the name of our shared objects. Instead of -lgtkjar2.6 you should use -lgtkjava2.6. > Do you know what the problem can be? Also could a gentoo user please send > his Makefile and the versions you use? I should be able to send you a makefile later today - when i get home. -- Jeffrey Morgan "The highest reward for a man's toil is not what he gets for it, but what he becomes by it" - Jon Ruskin |
From: Ismael J. <ml...@ju...> - 2005-03-08 18:38:48
|
Abcdefg wrote: > [snip] > > I have tried a lot of different versions, this is what I currently have but > I also tried older version of libgtk-java(2.4) with the older version of > gtk(2.4): > dev-java/libglade-java-2.8.2.2 > x11-libs/gtk+-2.6.2 > dev-java/libgtk-java-2.6.0 > > This is the Makefile I use: > > INCLUDES=/usr/share/libgnome-java-2.8/lib/gnome2.8.jar:/usr/share/libgtk-java-2.4/lib/gtk2.4.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar > LIBS=-lgtkjar2.6 -lgladejar2.8 > LIBPATH=/usr/lib > FILES=Example.java > MAIN=Example > TARGET=Example > [snip] Your INCLUDES is still pointing to the gtk2.4.jar even though you now have a gtk2.6.jar. I don't use gentoo so I don't know exactly where the file is located, but basically you should replace "/usr/share/libgtk-java-2.4/lib/gtk2.4.jar" in INCLUDES by the full path of "gtk2.6.jar". If that doesn't solve it, don't hesitate to post back. Regards, Ismael |
From: Abcdefg <ab...@so...> - 2005-03-08 18:22:28
|
Hi, I updated my gentoo install (emerge -uD world) but now java gtk does not work anymore :( I think it has someting to do with gtk that updated form 2.4 to 2.6 I have tried a lot of different versions, this is what I currently have but I also tried older version of libgtk-java(2.4) with the older version of gtk(2.4): dev-java/libglade-java-2.8.2.2 x11-libs/gtk+-2.6.2 dev-java/libgtk-java-2.6.0 This is the Makefile I use: INCLUDES=/usr/share/libgnome-java-2.8/lib/gnome2.8.jar:/usr/share/libgtk-java-2.4/lib/gtk2.4.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar LIBS=-lgtkjar2.6 -lgladejar2.8 LIBPATH=/usr/lib FILES=Example.java MAIN=Example TARGET=Example # The actual makefile rules all: ${JAVAC} -classpath ${INCLUDES} ${FILES} run: ${JAVA} -Djava.library.path=${LIBPATH} -classpath .:${INCLUDES} ${MAIN} native: ${GCJ} -classpath ${INCLUDES} ${LIBS} --main=${MAIN} -o ${TARGET} ${FILES} clean: rm -f *.class This is the error when I type 'make native': gcj -classpath /usr/share/libgnome-java-2.8/lib/gnome2.8.jar:/usr/share/libgtk-java-2.4/lib/gtk2.4.jar:/usr/share/libglade-java-2.8/lib/glade2.8.jar -lgtkjar2.6 -lgladejar2.8 --main=Example -o Example Example.java /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/../../../../i386-pc-linux-gnu/bin/ld: cannot find -lgtkjar2.6 collect2: ld returned 1 exit status make: *** [native] Error 1 This is the error I get when I type javac Example.java and than java Example: Exception in thread "main" java.lang.NoSuchMethodError: org.gnu.gtk.Widget.makeWidget(I)Lorg/gnu/gtk/Widget; at org.gnu.glade.LibGlade.getWidget(LibGlade.java:202) at org.gnu.glade.LibGlade.connect(LibGlade.java:171) at org.gnu.glade.LibGlade.glade_xml_signal_autoconnect_full(Native Method) at org.gnu.glade.LibGlade.<init>(LibGlade.java:95) at org.gnu.glade.LibGlade.<init>(LibGlade.java:60) at Example.<init>(Example.java:19) at Example.main(Example.java:11) when I type make && make run it does compile and run but the program does not work (nothing happens when I click a button) This is the program I use:http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/GladeWidgetPropertiesAndEvents I dont know what those errors mean or what to do :( Do you know what the problem can be? Also could a gentoo user please send his Makefile and the versions you use? I wished that when I type import org.gnu.gtk.* it just worked.. ;) Always when I program something in java I spend a lot of time finding the classpath and other stuff I don't understand.. I'm currently pretty desperated because I;m working on a program and can't code now :( Any help very appreciated, David |
From: Simon G. <si...@sg...> - 2005-03-08 15:28:12
|
Is it possible to have binary builds for win32 available from the main site. We are only interested in the stable versions. It seems at least one of you guys have managed to build it, and it would be really great for us to be able to use GTK on windows from our Java App, because Swing is just too horrible! I think targeting java developers that have to deploy to Win32 is a good aim, it will promote adoption. And providing binary builds for stable releases would really help. |