Your CLASSPATH needs to be set "globally" for the browser, not just for the shell you develop code in.

For Win 9X, set in AUTOEXEC.BAT
For NT, set in "Environment" in "System" properties in "Control Panel".

I assume if you set the classpath in a dos shell, then launch the browser from that dos shell it will be set for that browser session.