package javax.ejb does not exist

Scar picture Scar · Nov 21, 2011 · Viewed 25.7k times · Source

I have opened a project in netbeans to view the project but there is a same error in most of the files. It says that "package javax.ejb does not exist". This is a working project and I am not sure what is wrong. Can anyone help me?

Answer

patient957 picture patient957 · Oct 18, 2012

Try this first: http://forums.netbeans.org/topic44810.html

If that doesn't fix your problem, you can right click on your project and go to the properties section. Click on the Libraries section and select "Add Library". Then scroll down until you find the Libraries that start with "Java" (for example: Java EE 6 API Library). I add all of the Java libraries to my project to resolve this issue, however you might add them one at a time and see which one resolves it.