Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package javax.ejb does not exist

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?

like image 786
Scar Avatar asked Nov 21 '11 03:11

Scar


2 Answers

you just need to import Java EE Web 6 API Library to fix this issue, these libraries must be imported under the libraries folder: right click Add library, click on import library, scroll down and look for Java EE Web 6 API Library, click on import library and finally click on add library.

That should fix any issues

In my case I was working with java with ant java web app, i was also using Java EE Version Java EE 6 web

like image 160
Jaime Enrique Rodrguez Castell Avatar answered Sep 22 '22 23:09

Jaime Enrique Rodrguez Castell


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.

like image 32
patient957 Avatar answered Sep 24 '22 23:09

patient957