[kaffe] Re: How to port kaffe to sh3?

周光华 g_zhou at hitachi.com.cn
Mon Feb 9 02:51:01 PST 2004

but I run "java HelloWorld" ok!

bash-2.05a# java HelloWorld
Hello World, my dear

----- Original Message ----- 
From: "周光华" <g_zhou at hitachi.com.cn>
To: <kaffe at kaffe.org>
Sent: Monday, February 09, 2004 6:40 PM
Subject: How to port kaffe to sh3?

> Dear all,
>     I am struggling to port kaffe to SolutionEngine7709A (sh3). It's OS is SH-Linux (2.4.18).
> I am planning to compile kaffe-1.0.7.tar.gz on SolutionEngine7709A, and I copied the directory of superh in kaffe-1.1.3.tar.gz to  kaffe-1.0.7/config, and add one line to kaffe-1.0.7/config/md.h: #include "superh/linux/md.h", and changed known=no to known=yes in the file of kaffe-1.0.7/configure. Then I run 
> ./configure 
> make 
> make install 
> All runs OK, but when I test a HelloWorld.java, It fails at:
> bash-2.05a# javac HelloWorld.java
> bash-2.05a# ls
> HelloWorld.class  HelloWorld.java
> bash-2.05a# java HelloWorld.class
> java.lang.ClassNotFoundException: HelloWorld/class
>         at java.lang.Class.forName(Class.java:native)
>         at java.lang.Class.forName(Class.java:58)
> CLASSPATH is set with:
> CLASSPATH=.:/usr/local/kaffe/jre/lib:CLASSPATH=/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib:/usr/local/kaffe/lib/kjc.jar
> Thanks very much!
>                                                                              zhou guanghua 

More information about the kaffe mailing list