嗨,我正在尝试在 Linux 中从 java 启动软件,但我收到了 appimage 的此错误: dlopen():加载 libfuse.so.2 时出错
AppImages 需要 FUSE 才能运行。 您也许仍然能够提取此 AppImage 的内容 如果您使用 --appimage-extract 选项运行它。 请参阅https://github.com/AppImage/AppImageKit/wiki/FUSE 了解更多信息
这是代码:
public void execAltern(){
processBuilder = new ProcessBuilder();
String exec = "";
exec = DefaultLaunchExec.defaultLaunch.get(app.getExecProgram())+ app.getExecPath();
processBuilder.command("/bin/bash","-c",exec); // exec is the path of the file
System.out.println("\n"+processBuilder.command());
try {
process = processBuilder.inheritIO().start();
StringBuilder output = new StringBuilder();
BufferedReader reader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
output.append(line + "\n");
System.out.println(line);
}
} catch (IOException e) {
System.out.println(e);
}
DefaultLaunchExec.appRunning.remove(this);
}
你失踪了
libfuse2
。尝试以下命令:sudo apt install libfuse2
有关更多信息,请参阅 https://docs.appimage.org/user-guide/troubleshooting/fuse.html