Explore the field guideDocumentationField guidesCommunitySearchStoreJournal

2024-07-01

Linyaps packaging error: java: not found

Diagnose the java: not found packaging error using the original explanation and screenshots.

This article is reproduced from deepin forum-Linyaps area- Original link Author:deepin-superuser


image.png

Solution

1. Complete JRE related dependencies

Open linglong.yaml We can find that only the dependencies are added openjdk-11-jre , so we have to make up for the remaining

ll-pica adep -d "ca-certificates-java,fonts-dejavu-extra,java-common,libatk-wrapper-java,libatk-wrapper-java-jni,libgif7,openjdk-11-jre-headless"
2. Copy jre to the bin directory

After completing the dependencies, we can find that java is not installed in the bin directory. Here we copy it and edit linglong.yaml Add a sentence at the end

cp -r $PREFIX/lib/jvm/java-11-openjdk-amd64/* $PREFIX
image.png
3. Fix startup command

Some run commands written in the startup script are absolute paths, but the paths have changed in Linyaps. Here we change it to the correct path

image.png

Then again as usual, run the test

ll-builder build
ll-builder export
ll-builder run


English edition: Linglong editorial · 18 October 2026. Original publication: 2024-07-01.