You have Kaffe installed. Kaffe is an open source implementation of Java that (mostly) implements Java 1.1.
http://www.kaffe.org
Unless you need it for some reason I suggest you remove it from your system. Then just make sure you have either the JRE or JDK 1.3.1 installed and added to your path and you should be ready to go. Open a terminal and use the command:
java -version
To see which version of java is executing.