Issue
- When trying to create a Liferay Module Project Fragment it will ask to set valid Liferay portal runtime as follows:
Please set a valid liferay portal runtime, you can initBundle or modify 'liferay.workspace.home.dir' to make it point to an existing runtime.
Environment
- Liferay DXP 7. x
-
Liferay Developer Studio Version: 3.9.4.202108090632-ga5
Resolution
- Add the 'liferay.workspace.home.dir' with the proper path of the Liferay instance in Gradle. properties as mentioned below:
liferay.workspace.home.dir= /home/../../liferay-dxp-7.2.10.3-sp3
- Now, add a server by navigating to Windows --> Preferences --> Server --> Runtime Environment --> Add.
- Post adding the server from the windows tab. Now, click on the "No server available. Click on to create a new server" option present at the bottom left corner under the Server tab and add a new server with the help of the New Server pop-up.

- After adding the new server you are able to create a Liferay Module Project Fragment as it the above-mentioned step will add the required runtime.

