posted 23 years ago
Hey All,
Many of those program examples in ch 14 in Bruce Eckel's book import the com.bruceeckel.swing package, which is created in Console.java. I have compiled this program, so there is a Console.class in that same subdirectory. However, these are the two error messages I get when I try to compile the Counter programs, which call Console.java.
package com.bruceeckel.swing does not exist
import com.bruceeckel.swing.*;
cannot access Console
bad class file: .\Console.class
class file contains wrong class: com.bruceeckel.swing.Console
Please remove or make sure it appears in the correct subdirectory of the classpath. Console.run(new Counter2 (), 300, 100);
Thanks for any help,
Doug