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?
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.
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.
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.
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.
Configure a global library for your application server jars and add this global library to the module dependencies.
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]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With