[kaffe] babylon chat server

Dalibor Topic robilad@kaffe.org
Tue Oct 28 12:36:02 2003


Hi Mark,

thanks for your bug report, and sorry for the long delay before you got 
a reply.

M.D. DeWar wrote:
> Hello
> I installed kaffe 1.0.7 on my freebsd 4.8 machine.

Try using 1.1.2, it's got more than a year of further development under 
its belt.

> I d/l the babylon chat server program.
> Kaffe was installed per the docs. 
> When I try to run the babylon server I get this error.
> I am not sure were the issue lies. I tried with the java and kaffe bins
> 
> spiderman# ./java /temp/babylon-2.1_BETA/babylonServer
> java.lang.ClassNotFoundException: /temp/babylon-2/1_BETA/babylonServer
>         at java.lang.Class.forName(Class.java:native)
>         at java.lang.Class.forName(Class.java:58)
> 
> spiderman# ./kaffe /temp/babylon-2.1_BETA/babylonServer
> java.lang.ClassNotFoundException: /temp/babylon-2/1_BETA/babylonServer
>         at java.lang.Class.forName(Class.java:native)
>         at java.lang.Class.forName(Class.java:58)
> 
> also the java/kaffe in the jre directory.

When you run java programs, you have to pass kaffe the name of the class 
which contains the main method you want to run, and that class must be 
on the $CLASSPATH. It's a concept similar to running programs and $PATH 
under Unix.

So if babylonServer is the class you want to run, you need to add its 
jar file to the CLASSPATH, and then you can run the program as
kaffe babylonServer

For more detailed information, please read the MANUAL.TXT file in the 
babylon 2.1 BETA distribution you downloaded ;)

cheers,
dalibor topic