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