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

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.

問題

  • 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