Payara Server tools in VSCode

Adding Payara Server to VSCode

  1. Open the command pallet using Ctrl + Shift + P, type Payara and select the Add Payara Server option:

    Add Payara Server

    Or In the explorer sidebar (or Payara activity bar), expand Payara Servers, Press the + sign to add Payara Server:

    Add Payara Server
  2. Browse the Payara Server installation path (recently used servers location are listed by default):

    Browse Server Runtime
  3. Choose a name for the server.

    Fill server name
  4. Then select a domain from the list or create a new domain by pressing the + button:

    Select server domain

That’s how to add Payara Server to VSCode.

Managing Payara Server from VSCode

Once Payara Server is added to VSCode it can be found under the Payara Servers explorer panel with the configured name. Right-clicking on the server lets you do the following things:

  • Start, restart or stop the server

  • Start debugging the server

  • Rename or remove the server

  • Open admin console

  • Open server log

  • Open server domain.xml config

  • Update Admin credentials

  • Update JDK Path

Start Payara Server

Deploying Applications to Payara Server

An application can be deployed and undeployed easily from VSCode.

Right-click on the application and select Run on Payara Server to deploy the application:

Deploy application

The deploy application can be opened in the browser, undeployed or disabled by right-clicking on the application:

Open application homepage