Installing a server in Liferay Dev Studio is easy. In just a few steps you’ll have your server up and running. Follow these steps to install your server:
In the Servers view, click the No Servers are available link. If you already have a server installed, you can install a new server by right-clicking in the Servers view and selecting New → Server. This brings up a wizard that walks you through the process of defining a new server.
Select the type of server you would like to create from the list of available options. For a standard server, open the Liferay, Inc. folder and select the Liferay 7.x option. You can change the server name to something more unique too; this is the name displayed in the Servers view. Then click Next. If you’re creating a server for the first time, continue to the next step.
Note: If you’ve already configured previous Liferay servers, you’ll be provided the Server runtime environment field, which lets you choose previously configured runtime environments. If you want to re-add an existing server, select one from the dropdown menu. You can also add a new server by selecting Add, or you can edit existing servers by selecting Configure runtime environments. Once you’ve configured the server runtime environment, select Finish. If you selected an existing server, your server installation is finished; you can skip steps 3-5.
Enter a name for your server. This is the name for the Liferay DXP runtime configuration used by Dev Studio. This is not the display name used in the Servers tab.
Browse to the installation folder of the Liferay DXP bundle. For example,
Select a runtime JRE and click Finish. Your new server appears under the Servers view.
Your server is now available in Liferay Dev Studio!
For reference, here’s how the Dev Studio server buttons work with your Liferay DXP instance:
- Start (): Starts the server.
- Stop (): Stops the server.
- Debug (): Starts the server in debug mode. For more information on debugging in Dev Studio, see the Debugging Liferay DXP source in Liferay Dev Studio article.
Now you’re ready to use your server in Liferay Dev Studio!