Make sure your classpath is set correctly:
example of my classpath:
.;d:\j\j2sdk1.4.0;d:\j\j2ee1.2.1\lib\j2ee.jar;C:\jakarta-tomcat-3.3.1\lib\struts.jar;D:\j\jakarta-oro-2.0\jakarta-oro-2.0.jar;d:\j\jaf-1.0.1;d:\j\jars\js.jar;d:\j\jars\lotusxsl.jar;d:\j\jars\xerces.jar;d:\j\jars\xml4j.jar;
THe bold path is the path you are missing. Add it and make it point to your j2ee.jar....
If you are on Win98, set the classpath in autoexec.bat. If you are on WinNT, set it in system properies
hth,
Surf