Thread: Re: [Java-gnome-developer] Java gtk does not work anymore after gentoo update
Brought to you by:
afcowie
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: 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 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: 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-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: 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: 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... |