Add one-shot Java EE libraries to project

Hello,

I get validation and compile errors for all of my javax.* classes in the project (mostly imports and annotations on the entities).

I know I can add each JAR to the path manually, like the libs provided from JBoss Wildfly, which I'm using, but then I need to add the JPA 2.1 JAR, the JSF JAR, the CDI JAR etc., that is one for each javax subpackage - yawn.

Example: http://devnet.jetbrains.com/thread/453942?tstart=0

Isn't there any one-shot "add all Java EE libs" library setting, much like adding the JDK? Of course, I only need this for building the project and I don't want to download any JARs into the project's lib dir nor do I want any of these deployed to the server.

So, what is the best to solve this (using IntelliJ 13.1.1)?

Thanks

1 comment

Hello Kawu,

Use Add Framework Support action on a project https://www.jetbrains.com/idea/webhelp/adding-frameworks-support.html , which will download and attach to the module the libraries for frameworks you choose in the dialog.

0

Please sign in to leave a comment.