Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIRAI2.14版本插件无法加载 ,报错。 #1

Open
RainbowDashKira opened this issue Feb 10, 2023 · 8 comments
Open

MIRAI2.14版本插件无法加载 ,报错。 #1

RainbowDashKira opened this issue Feb 10, 2023 · 8 comments

Comments

@RainbowDashKira
Copy link

No description provided.

@RainbowDashKira
Copy link
Author

QQ图片20230210163405

@XIAYM-gh
Copy link
Collaborator

此插件需要 Java 17 运行
请安装 JRE17
是我疏忽了 没在README里写要求

@RainbowDashKira
Copy link
Author

你好,我18换了17,还是报错。

@XIAYM-gh
Copy link
Collaborator

XIAYM-gh commented Feb 10, 2023

打开 cmd / terminal emulator
输入 java -version 查看默认 java 版本
如果不为 17/18,请设置 PATH 或编辑 mcl.bat (for windows) / mcl (for *nix and *bsd) 文件中的启动命令

@XIAYM-gh
Copy link
Collaborator

重新检查了一遍代码,并没有用到 17 的特性;
如果您还是无法解决,请尝试使用 11 重新编译

@aipiao-gh
Copy link
Contributor

mcl.bat中
@echo off
setlocal
set JAVA_BINARY=java
%JAVA_BINARY% -Dmirai.slider.captcha.supported -jar mcl.jar %*

set EL=%ERRORLEVEL%
if %EL% NEQ 0 (
echo Process exited with %EL%
pause
)

java换成你Java17的绝对路径试试,例如换成C:\Program Files\Java\jdk-17.0.3\bin\java
如果还不能解决可能需要您自己编译了

@aipiao-gh
Copy link
Contributor

改成绝对路径的时候记得要加引号

@RainbowDashKira
Copy link
Author

再次检查后发现是DICE的问题,用MIRAI直接启动不会报错,感谢两位指导。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants