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

无法启动,显示错误:无法初始化主类 net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader #4

Closed
Kesunorin opened this issue Dec 5, 2023 · 3 comments

Comments

@Kesunorin
Copy link

问题描述
start.sh脚本启动后显示

错误: 无法初始化主类 net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader
原因: java.lang.NoClassDefFoundError: kotlinx/coroutines/CoroutineScope

按照用户手册方法三安装,依次准备了三个文件 mirai-console-2.16.0-all.jar mirai-console-terminal-2.16.0-all.jar overflow-core-all-2.16.0-all.jar
创建 libs 文件夹,将以上内容放入该文件夹。
使用 start.sh(Linux/MacOS) 如下

java -cp "$CLASSPATH:./libs/*" net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader

overflow版本
overflow版本:overflow-core-all-5194d53

@Kesunorin
Copy link
Author

Kesunorin commented Dec 5, 2023

overflow版本退回overflow-core-all-ccaadf8解决

@MrXiaoM
Copy link
Owner

MrXiaoM commented Dec 5, 2023

Snipaste_2023-12-05_18-43-13

文件结构

Snipaste_2023-12-05_18-46-34

我手头没趁手的 Linux 环境,用 WSL 无法复现。

@Kesunorin
Copy link
Author

重新下载尝试复现,奇迹地好了,可能是下载不完整(之前比较文件大小了),抱歉!

@Kesunorin Kesunorin closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
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

2 participants