1) the bin directory of the JDK doesn't belong on the classpath.
2) the directory containing your sourcecode does belong on the classpath.
might not help, but it's a start. And as j2ee.jar contains those classes, if you get that error it's NOT on the classpath as far as the compiler is concerned (or you have a very weird version of j2ee.jar that doesn't contain
EJB related classes).