beta.blog

Programming

macOS: Installing Glassfish and Configure IntelliJ IDEA to use it

by on Feb.22, 2019, under MAC OS X, Programming

GlassFish is the Open Source Java EE Reference Implementation, an application server that was initially created by Sun Microsystems and allows us to run javax webservice applications.

Install Homebew

Download homebrew from the project website: https://brew.sh

Update the formulae and Homebrew itself

brew update

Install Glassfish

brew install glassfish

As of the time of this writing, Glassfish 5.0 was the latest version.

Configure IntelliJ IDEA

  • IntelliJ IDEA > Preferences… > Build, Execution, Deployment > Application Servers
  • Click on the + (plus) icon in order to create a new application server configuration.
  • Choose Glassfish Server from the list and use the GlassFish Home directory below:
/usr/local/Cellar/glassfish/5.0/libexec

Ensure to substitute the version number with the one installed through Homebrew. We may afterwards configure a new Run Configuration in order to start the Glassfish server and test our built artifact.

1 Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!