我已经安装了该程序佐特罗在 /opt 上。我的 Java 环境 (JRE) 存在问题。在这篇文章中,据说需要运行sudo apt install default-jre
和sudo apt install libreoffice-java-common
。但我已经有了它们:
$ sudo apt install default-jre
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
default-jre is already the newest version (2:1.11-72build2).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
$ sudo apt -y install libreoffice-java-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libreoffice-java-common is already the newest version (4:7.6.4-0ubuntu0.22.04.1~lo1).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
$ java --version
openjdk 11.0.21 2023-10-17
OpenJDK Runtime Environment (build 11.0.21+9-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.21+9-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)
$ ls /usr/lib/jvm/
java-11-openjdk-amd64
当我启动 LibreOffice Writer 时仍然收到 Java 错误:
在Tools>advanced中根本没有Java环境:
这不是我第一次设置 JRE,但几个月后它就丢失了。
我如何修复 LibreOffice 的 JRE?
谢谢