[kaffe] libreadline-java fails to compile with kaffe-1.1.5: can't find java.lang.Object

Joshua Nichols joshua.nichols at gmail.com
Tue Sep 20 09:44:05 PDT 2005


Salutations,

I'm playing around with kaffe to use it to build packages for Gentoo
Linux. I'm experiencing some problems finding java.lang.Object for
libreadline-java, but I would imagine other packages have the same
problem:

cd src ; make JAVAC="javac" JC_FLAGS="" java
make[1]: Entering directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src'
javac  -d ../build `find . -name "*.java"`
make[1]: Leaving directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src'
cd ./build ; jar -cvmf ../etc/manifest.stub ../libreadline-java.jar *
added manifest
adding: org/ (in=0) (out=0) (stored 0%)
adding: org/gnu/ (in=0) (out=0) (stored 0%)
adding: org/gnu/readline/ (in=0) (out=0) (stored 0%)
adding: org/gnu/readline/ReadlineReader.class (in=2942) (out=1505)
(deflated 51%)
adding: org/gnu/readline/Readline.class (in=5156) (out=2270) (deflated 44%)
adding: org/gnu/readline/ReadlineCompleter.class (in=194) (out=138)
(deflated 71%)
adding: org/gnu/readline/ReadlineLibrary.class (in=976) (out=540)
(deflated 55%)adding: test/ (in=0) (out=0) (stored 0%)
adding: test/ReadlineTest.class (in=2254) (out=1275) (deflated 57%)
adding: test/TestCompleter.class (in=535) (out=362) (deflated 68%)
cd src; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/kaffe-1.1.5/include" \
                JAVANATINC="/opt/kaffe-1.1.5/include/linux" native
make[1]: Entering directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src'
cd native ; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/kaffe-1.1.5/include" \
                            JAVANATINC="/opt/kaffe-1.1.5/include/linux" all
make[2]: Entering directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native'
make TG=JavaReadline lib
make[3]: Entering directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native'
javah -classpath ../../build -jni org.gnu.readline.Readline
Failed to open object 'java/lang/Object'
make[3]: *** [org_gnu_readline_Readline.h] Error 1
make[3]: Leaving directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native'
make[2]: *** [JavaReadline] Error 2
make[2]: Leaving directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src/native'
make[1]: *** [native] Error 2
make[1]: Leaving directory
`/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src'
make: *** [build-native] Error 2

Regards,

Joshua Nichols
nichoj on #gentoo-java




More information about the kaffe mailing list