[Topic discussion] 玲珑打包报 java: not found 解决方法
Tofloor
poster avatar
deepin-superuser
deepin
2024-05-31 11:35
Author
image.png

解决方案

1.补齐 JRE 相关依赖

打开 linglong.yaml 我们可以发现,依赖中只添加了 openjdk-11-jre,所以我们要补齐剩余的

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.复制 jre 到 bin 目录

补齐依赖以后 我们可以发现 java 并没有安装到 bin 目录,这里我们复制过去,编辑 linglong.yaml 在最后添加一句

cp -r $PREFIX/lib/jvm/java-11-openjdk-amd64/* $PREFIX

image.png

3.修复启动命令

有部分启动脚本中写的运行命令是绝对路径,但是在玲珑里路径已经变化了。这里我们修改为正确的路径

image.png

然后还是老样子,运行测试

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

玲珑打包问题解决方案系列

玲珑打包报 start.sh:行2: ./xxx: No such file or directory 解决方案

玲珑打包报 xxx.so: cannot open shared object file 解决方法

玲珑打包报 java: not found 解决方法

Reply Favorite View the author
All Replies
ice
Moderator
gaochang661
2024-05-31 12:17
#1

like

Reply View the author
Jokul
deepin
2024-05-31 14:14
#2

收藏从未终止like

Reply View the author
晚秋(lateautumn)
Moderator
2024-05-31 14:43
#3

厉害applaud

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-05-31 20:53
#4

值得学习

Reply View the author
蓝鲸
deepin
2024-06-16 17:06
#5

给我解决缺少java依赖的问题,提供了很好的思路,非常值得学习!kissing_heart

Reply View the author