package javax.ejb does not exist inspite of jar file in classpath
I'm trying to compile a java program using command javac -d build src/*.java -verbose It returns me the following: src\Currency.java:5: package javax.ejb does not exist import javax.ejb.*; ^ src\Currency.java:7: cannot find symbol symbol: class EJBObject public interface Currency extends EJBObject { ^ I'm using jdk1.6.0_35. CLASSPATH contains C:\wls1036_dev\modules\ which contains javax.ejb.jar What could possibly be the problem? I faced the same problem . You need to add javaee5.jar to you class path . For example I imported an ejb project and then realised I was using a version of Netbeans