Create a Jakarta EE 8 Web App with Payara Server and Your Favorite IDE
Published on 22 Jun 2021
by Debbie Hoffman and Rudy De Busscher
Payara Server works well with most IDEs, including four of the most commonly used IDEs for Jakarta EE developers: NetBeans, Eclipse IDE, IntelliJ IDEA Ultimate, and Visual Studio Code. Here's how to use each of the IDEs to create a Jakarta EE 8 Web App with Payara Server:
NetBeans
NetBeans has a project wizard that allows you to create a Java EE 8 application. (Learn how to use NetBeans with Payara Server here). Using that same wizard, you can select Payara Server as the runtime for your application and download and install a Payara Server installation directly from this wizard.
NetBeans also uses the Maven or Gradle build tool, so your application can be built outside the IDE (such as using your CI tool) as that is considered best practice.
Once the project is created and all build tools files are in place, you can immediately start your program and test it out.
Eclipse IDE
Eclipse IDE relies on the Maven Archetype you specify to create a Maven project that is immediately imported into the IDE itself. There are several archetypes available on Maven central, each having some additional initial code and some already include the MicroProfile dependencies that are also supported by Payara Server. (Learn how to create a Jakarta EE application using the Payara Server plugin on the Eclipse IDE here).
Once the project is created, you can run it on Payara Server using the plugin. The plugin allows you to start and stop the application, and also lets you look at the logging and the domain configuration file.
IntelliJ IDEA Ultimate
IntelliJ IDEA provides great tooling for developing with Payara Server. (Learn how to create a simple web application that runs on Payara Server with IntelliJ IDEA). By default, IntelliJ IDEA Ultimate comes with the GlassFish plugin installed and enabled which can be used to start, stop and debug Payara Server along with other server functionality. IntelliJ IDEA also includes the Payara Platform Tools plugin, which provides all the features available in the GlassFish plugin, plus additional tooling features available in Payara - like the Hot Deploy functionality.
IntelliJ IDEA Ultimate has many advanced features that makes development much easier for a Jakarta EE developer and many tools built-in so you don’t need to leave your IDE.
Visual Studio Code
We have created a specific plugin for Payara products that can be used with the IDE. Once the plugin is added to the IDE, you can configure the Payara Server from the plugin so you can run the application directly from within the IDE.(Learn how tocreate a Jakarta EE application with Visual Studio Code using the plugin for the Payara Server here).
You can create a Maven project so that you can also build it outside the IDE, such as in your CI environment, so you can automate your deployments.
We will create a Maven project so that you can also build it outside the IDE, such as in your CI environment, so you can automate your deployments.
Related Posts
The Payara Monthly Catch - October 2024
Published on 30 Oct 2024
by Chiara Civardi
0 Comments
The Payara Monthly Catch - September 2024
Published on 30 Sep 2024
by Chiara Civardi
0 Comments