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 |