legacy-knowledge-base
公開されました Jul. 2, 2025

Dev Studio で有効な liferay ランタイムを追加する

written-by

Katlyn Lee

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

learn-legacy-article-disclaimer-text

問題

  • Liferay モジュール プロジェクト フラグメントを作成しようとすると、
    のエラーが発生します。 ."
    Screenshot_from_2021-05-26_09-56-38.png

Environment

  • Liferay Developer Studio

解決策

  • 有効な liferay ポータル ランタイムを設定するには、以下のいずれかの方法を使用します。
    • 方法 A: サーバーバンドルを初期化する:
      1. Liferay ワークスペース プロジェクトを右クリックします > をクリックします Liferay > をクリックします サーバー バンドルを初期化します
    • 方法 B: 既存のサーバー ランタイムを手動で追加する で、liferay ワークスペースの外の場所を指します:
      1. Dev Studio で、Window > Preferences > Server > Runtime Environments に移動します。
      2. [追加] をクリックして新しい Liferay ランタイム (「Liferay, Inc.」タイプ) を追加し、liferay ワークスペースのホーム ディレクトリとして設定する既存の Liferay バンドルと一致するようにフィールドを構成します。
      3. gradle.properties を変更し、liferay.workspace.home.dir プロパティの値を既存のバンドルのパスに設定します。
did-this-article-resolve-your-issue

legacy-knowledge-base