[Java-gnome-developer] RE: GCJ support in java-gnome breaks --with-kaffe
Brought to you by:
afcowie
From: Mikko J R. <mjr...@cc...> - 2001-09-11 12:56:10
|
On Tue, 11 Sep 2001, Jeffrey Morgan wrote: > I believe I have fixed both the Kaffe problem and > the and the problem you were having with Debian. > Can you please give the code in cvs a try and let > me know your findings? Did that, and --with-kaffe seems to in itself work again even with --with-gcj-compile, but the libgcj.jar location that it tries to use is still wrong. Funny, though, that it doesn't notice it until the second gcj-compiled file: --- CUT HERE --- gcj -fPIC -fjni -g -O --classpath=/usr/share/libgcj.jar:/usr/share/kaffe/Klasses.jar:. -o gnu/gdk/BaseBoxed.o -c gnu/gdk/BaseBoxed.java gcj -fPIC -fjni -g -O --classpath=/usr/share/libgcj.jar:/usr/share/kaffe/Klasses.jar:. -o gnu/gdk/BaseEnum.o -c gnu/gdk/BaseEnum.java java/lang/Object.java:0: The `java.lang.Object' that was found in `/usr/share/kaffe/Klasses.jar' didn't have the special zero-length `gnu.gcj.gcj-compiled' attribute. This generally means that your classpath is incorrect set. Use `info gcj "Input Options"' to see the info page describing how to set the classpath. compilation terminated. --- CUT HERE --- Anyway, in configure, I do notice a check for the libgcj.jar location, but as it happens, it sets the same GCJ_CLASSPATH either way :) --- CUT HERE --- if test -f ${GCJ_HOME}/share/libgcj.jar ; then GCJ_CLASSPATH="${GCJ_HOME}/share/libgcj.jar:${CLASSPATH}" elif test -f ${GCJ_HOME}/share/java/libgcj.jar ; then GCJ_CLASSPATH="${GCJ_HOME}/share/libgcj.jar:${CLASSPATH}" --- CUT HERE --- Oh, by the way, this probably isn't new information to you if you've experimented with jikes compilation, but I'll put it here nonetheless, just in case. Just symlinking jikes to javac seems to be almost workable if jikes sees the base java libraries (which I managed in my Sid installation by extracting libgcj.jar into /usr/share/java/repository - this'd probably be better accomplished by adding a class library jar package into jikes' classpath, but I was just trying this as a quick hack). The compilation goes ok until a java-gnome source file tries to reference others of its kind. --- CUT HERE --- /usr/bin/javac -d . other/BaseBoxed.java /usr/bin/javac -d . other/BaseEnum.java /usr/bin/javac -d . other/BaseFlags.java /usr/bin/javac -d . other/BaseObject.java /usr/bin/javac -d . other/GListString.java Found 1 semantic error compiling "other/GListString.java": 31. extends BaseObject <--------> *** Error: Type gnu/gdk/BaseObject was not found. --- CUT HERE --- (This, as said, with /usr/bin/javac being a symlink to jikes.) -- Mikko Rauhala - mj...@ik... - http://www.iki.fi/mjr/ |