Legacy Knowledge Base
Published Jul. 2, 2025

Unable to create Liferay Module Project Fragment in LDS

Written By

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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.

before_cofig.png

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.

new_server.png

  • 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.

after_cofig.png

 

Did this article resolve your issue ?

Legacy Knowledge Base