Legacy Knowledge Base
公開されました Jul. 2, 2025

ドキュメント プレビューを生成するプロセスを実行すると、プログラムを実行できない「java」エラーが発生する

Written By

María Picado

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.

問題

  • 以前にロードされていない画像またはドキュメントをアップロードまたはプレビューすると、次の WARN がスローされます。
    WARN [liferay/document_library_pdf_processor-1][BaseProcessorMessageListener:40]  Unable to process file version 123713 
    com.liferay.petra.process.ProcessException: java.io.IOException:  Cannot run program "java": error=2

Environment

  • ライフレイ DXP 7.0、7.1、7.2

解決策

  • ドキュメントのプレビューを生成する別の Java プロセスをサーバーが実行しようとすると、Java 実行可能ファイルが見つからず、上記の例外がスローされます。
  • 解決策と回避策があります。
    • 解決策: この動作を回避するには、PATH 変数に Java 実行可能ファイルのパスを設定する必要があります。 通常は JAVA_HOME/binにあります。
    • 回避策: ドキュメント プレビュー プロセスが個別に実行されないようにするには、ポータル プロパティ dl.file.entry.preview.fork.process.enabled を false に設定します。
      重要: この回避策は、実稼働環境では推奨されません。
Did this article resolve your issue ?

Legacy Knowledge Base