Thanks for the reply. I have my JBoss Application server added to my NetBeans.
I am not trying to run it from the command line, I am receiving the error message in Netbeans, and this is before I compile my file. a pop-up error message is displayed and
the line "import javax.ejb.*" is red-marked.
In NetBeans if you view the details of your project and then look at 'libraries' entry, do you see javax.* JAR's?
They should be derived from the application server you configured your project with.
If not, you must add at least the Java EE API to be able to use code-assistant and get rid of errors. Such API must not be included in your deployment archive, as the javax.* libraries are provided by the container.
You can use your application server JAR's or if you're using maven you can i.e. use the following dependency:
It's used only in compilation and testing phases - the target container will provide it's own implementation during runtime.
Joined: Aug 20, 2009
Thank you so much! I have fixed the problem with your help. What I did is, I right clicked on the project, I selected the libraries option and then I did include/import my J2EE.jar file. and this fixed the problem.