Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Java EE IntelliJ IDEA community edition

I only have the community edition of IntelliJ IDEA so it doesn't have the full support, but all I want it to do is compile and recognize Java EE classes. So far, I've gotten it to work by copying all of the JAR files in glassfish->modules into my project folder and then setting my module dependencies on that folder. Is there some other way to do this without copying over hundreds of JAR files or is it not possible without upgrading to the full version?

like image 812
jhlu87 Avatar asked Jul 14 '11 19:07

jhlu87


People also ask

Can I use Java EE in IntelliJ community?

IntelliJ IDEA provides support for developing enterprise Java applications based on the Java EE and Jakarta EE frameworks. All the required plugins are bundled and enabled by default in IntelliJ IDEA Ultimate. The main plugin is Jakarta EE Platform for the core platform support, such as a dedicated project wizard.

How do I run a Java EE application?

Adding the GlassFish Server On the Settings page, select Java EE 7 Web, and click Add to display the Add Server Instance wizard. On the Choose Server page, select GlassFish Server, and click Next. On the Server Location page, browse for and select the location where you want to install the server.

What is the use of IntelliJ IDEA Community Edition?

Community Edition is free and open-source, licensed under Apache 2.0. It provides all the basic features for JVM and Android development. IntelliJ IDEA Ultimate is commercial, distributed with a 30-day trial period. It provides additional tools and features for web and enterprise development.

Is IntelliJ Community Edition enough?

The community edition is fine for basic Java development. It is suitable for desktop projects, and includes the visual GUI Builder, and also supports Maven and Ant build tools, JUnit and TestNG testing, Java and Android development, and rich editor support for Java and XML.


2 Answers

Configure a global library for your application server jars and add this global library to the module dependencies.

like image 59
CrazyCoder Avatar answered Sep 28 '22 15:09

CrazyCoder


To add to CrazyCoder's answer. Add a GLOBAL library (I never saw this).

File -> Project Structure... -> Global Libraries -> + -> Java -> [choose root dir of server]

enter image description here

like image 42
Kawu Avatar answered Sep 28 '22 14:09

Kawu