#283 NoClassDefFoundError: TerminalIO/KeyboardReader


Hi, I'm a teacher, and I want to use Dr. Java for my high school computer science course. Unfortunately, I'm running into a problem related to some non-standard libraries my textbook uses. The textbook is called Java Basics by Lambert and Osborne (copyright 2003). The jar files needed by the textbook examples can be found here: http://faculty.cs.wwu.edu/martin/Software%20Packages/BreezySwing/

I have jar files in the proper locations. I can compile and run from the command line, and eclipse also works. Dr. Java allows me to compile, but upon running the simple program, I get an error. Note: I get this same error on OSX Lion and Windows 7.

This is the output I see in the Interactions panel:

Welcome to DrJava. Working directory is C:\Users\Cam\workspace
> run Cam
java.lang.NoClassDefFoundError: TerminalIO/KeyboardReader
at Cam.main(Cam.java:7)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:271)

The code for the program:

import TerminalIO.KeyboardReader;

public class Cam
public static void main(String [] TemperatureCalculations)
KeyboardReader reader = new KeyboardReader();
double fahrenheit;
double celsius;

System.out.print("Enter degrees Fahrenheit: ");
fahrenheit = reader.readDouble();

celsius = (fahrenheit - 32.0) * 5.0 / 9.0;

System.out.print("The equivalent in Celsius is ");


Any ideas?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks