Please check your CLASSPATH.
This is one basic setting you need to get J2SE (or even previous versions of it) working. If you are using Win2k/XP, set it in your system configuration, or else, you may choose to set it in the command prompt only. Refer to Sun's FAQ for this.