运行.bsh错误(ZereneStacker)

运行.bsh错误(ZereneStacker)

我正在尝试在 Linux 上运行程序 ZereneStacker(我使用的是 Chromebook Samsung 3)。我从以下位置下载了该程序的 .zip这里并提取它。根据该下载页面,.zip 文件包括:

ZereneStacker          executable launcher

ZereneStacker.bsh      launch script (provided for backward compatibility)

提取后,我cd进入提取的文件夹ZereneStacker尝试了命令

sudo chmod +x ZereneStacker
sudo ./ZereneStacker

sudo chmod +x ZereneStacker.bsh
sudo ./ZereneStacker.bsh

两者的输出都很长并且包含以下内容:

Fatal error: /home/user/ZereneStacker/jre/bin/java exists but is not an executable file

我需要进一步更改权限吗?我是否缺少安装步骤或者应该在第一次执行时安装?


以下是完整的输出,以防有帮助:

sizeof(ptr) = 8
Physical memory = 2986188800
isSafeMode = 0
argv[0] = [/home/user/ZereneStacker/ZereneStacker]
launcherFile = [/home/user/ZereneStacker/ZereneStacker]
sigh... appdir = /home/user/ZereneStacker
arg0 = /home/user/ZereneStacker/ZereneStacker
argc = 1
endDir = /ZereneStacker
length = 33
argsLength = 0
appdir = /home/user/ZereneStacker
appdataName = /root/.ZereneStacker
appdataName = /root/.ZereneStacker
appdataZSName = /root/.ZereneStacker
configFileName = /root/.ZereneStacker/zerenstk.cfg
configFile = 0
mxStringFromConfig = 

mxString = -Xmx1024m
launchCmdFileName = /root/.ZereneStacker/zerenstk.launchcmd
launchOKFileName = /root/.ZereneStacker/zerenstk.launchOK
trying launchParamsFileName = /home/user/ZereneStacker/zerenstk.ini
initialization line = "{appdir}/jre/bin/java" {memsize} -DjavaBits={javaBits} -Dlaunchcmddir="{launchcmddir}" -classpath "{appdir}/ZereneStacker.jar:{appdir}/JREextensions/*" com.zerenesystems.stacker.gui.MainFrame

invocation line before possible tweaking = "/home/user/ZereneStacker/jre/bin/java" -Xmx1024m -DjavaBits=64bitJava -Dlaunchcmddir="/root/.ZereneStacker" -classpath "/home/user/ZereneStacker/ZereneStacker.jar:/home/user/ZereneStacker/JREextensions/*" com.zerenesystems.stacker.gui.MainFrame
argument 0 before tweaking: [/home/user/ZereneStacker/jre/bin/java]
argument 1 before tweaking: [-Xmx1024m]
argument 2 before tweaking: [-DjavaBits=64bitJava]
argument 3 before tweaking: [-Dlaunchcmddir=/root/.ZereneStacker]
argument 4 before tweaking: [-classpath]
argument 5 before tweaking: [/home/user/ZereneStacker/ZereneStacker.jar:/home/user/ZereneStacker/JREextensions/*]
argument 6 before tweaking: [com.zerenesystems.stacker.gui.MainFrame]
argument 7 before tweaking: [(null)]
Invocation line: ["/home/user/ZereneStacker/jre/bin/java" -Xmx1024m -DjavaBits=64bitJava -Dlaunchcmddir="/root/.ZereneStacker" -classpath "/home/user/ZereneStacker/ZereneStacker.jar:/home/user/ZereneStacker/JREextensions/*" com.zerenesystems.stacker.gui.MainFrame ]
statbuf.st_mode = 100644
Fatal error: /home/user/ZereneStacker/jre/bin/java exists but is not an executable file

答案1

在 ZereneStacker 支持的帮助下,我找到了以下解决方案:

sudo apt-get update
sudo apt-get upgrade
sudo apt install openjdk-8-jdk
sudo chmod +x ZereneStacker/*.zslinux
sudo chmod +x ZereneStacker/ZereneStacker.bsh
sudo chmod +x ZereneStacker/ZereneStacker
sudo chmod +x ZereneStacker/jre/bin/*
cd ZereneStacker
./ZereneStacker.bsh

openjdk-8-jdk尽管 Zerene Stacker 内置了10.0.1 JRE.我只尝试过openjdk-8-jdk

相关内容