Linux/glibc2 can't find classes
Greg Wooledge
wooledge at kellnet.com
Thu Jul 16 18:57:58 PDT 1998
Kaffe 1.0.b1, Linux 2.0.34 (Debian GNU/Linux 2.0 with custom kernel),
glibc 2.0.7, gcc 2.7.2.3. Built with "./configure" and "make" and
"make install" without any errors.
When I try to run the "hello, world" test, it can't find the classes.
I've tried several variations:
phoenix:~/kaffe-1.0.b1/test$ env | grep PATH
CDPATH=:~
PATH=/usr/local/home/greg/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/qmail/bin:/usr/local/java/bin:/sbin:/usr/sbin:
phoenix:~/kaffe-1.0.b1/test$ javac HelloWorldApp.java
Cannot find essential class 'java/lang/Object' in class library ... aborting.
Aborted
phoenix:~/kaffe-1.0.b1/test$ CLASSPATH=/usr/local/share/kaffe/Klasses.jar javac HelloWorldApp.java
java.lang.ClassNotFoundException: pizza/compiler/Main
phoenix:~/kaffe-1.0.b1/test$ CLASSPATH=/usr/local/share/kaffe/Klasses.jar:/usr/local/share/kaffe/pizza.jar javac HelloWorldApp.java
phoenix:~/kaffe-1.0.b1/test$ ls -l HelloWorldApp.*
-rw-rw-r-- 1 greg greg 428 Jul 15 22:39 HelloWorldApp.class
-rw-r--r-- 1 greg greg 109 Jul 14 00:34 HelloWorldApp.java
phoenix:~/kaffe-1.0.b1/test$ java HelloWorldApp.class
Cannot find essential class 'java/lang/Object' in class library ... aborting.
Aborted
phoenix:~/kaffe-1.0.b1/test$ CLASSPATH=/usr/local/share/kaffe/Klasses.jar java HelloWorldApp.class
java.lang.ClassNotFoundException: HelloWorldApp/class
phoenix:~/kaffe-1.0.b1/test$ mv HelloWorldApp.class HelloWorldApp
phoenix:~/kaffe-1.0.b1/test$ CLASSPATH=/usr/local/share/kaffe/Klasses.jar java HelloWorldApp
java.lang.ClassNotFoundException: HelloWorldApp
Setting LD_LIBRARY_PATH has no effect (it's in /etc/ld.so.conf so it's
searched automatically). /usr/local/java contains that other JDK (which
works); but I don't think Kaffe is confused, because setting PATH to
just "/usr/local/bin:/usr/bin:/bin" also has no effect.
I also tried to send this using /usr/local/bin/report-kaffe-bug . Hope I
did it right (I don't have a send-pr man page).
--
"Daddy, why do those people have to | Greg Wooledge
use Microsoft Windows?" | wooledge at kellnet.com
"Don't stare, son; it's not polite." | http://www.kellnet.com/wooledge/
More information about the kaffe
mailing list