5

I've got a project running 1.7. I'm getting issues using javax.enterprise.context.RequestScoped. I'm confused as to why it isn't included as I have other javax.* libraries built into Netbeans by default.

Where can I download this library and how can I add it to my project?

3 Answers 3

7

By default, only the packages that are part of the Java Standard Edition are available. This library belongs to Java EE. Just go to project->properties->libraries->add library->Java EE Web 7 Api Library->add. That´s it.

2

It's part of the Java EE Specification. You should start your project within a container. In Netbeans use an Enterprise Application project type.

2
1

Try this: You can import this jar file into your project.

Use cdi-api.jar

I found mine in glassfish folder

.\glassfish-4.1\glassfish\modules