Wait a second-- when you're trying to run the class, you're invoking it as: java SmallExponent.class ? If that's what you're doing, the problem is, get rid of the ".class". You invoke java programs by saying "java" and then the class name, in this example it would be: java SmallExponent I may be interpreting that completely wrong, if I am, let ...