[英]Error launching executable jar - “Could not find or load main class”
I'm trying to open my jar using a .sh file. 我正在尝试使用.sh文件打开我的jar。 I'm running into this error though:
我遇到了这个错误:
Error: Could not find or load main class com.mpolder.harambot.Main
错误:找不到或加载主类com.mpolder.harambot.Main
As far as I know it exists and should work, this is what my classes look like: Classes 据我知道它的存在和应该工作,这就是我的课是这样的: 类
And here's my MANIFEST.MF 这是我的MANIFEST.MF
Manifest-Version: 1.0
清单版本:1.0
Archiver-Version: Plexus Archiver
存档器版本:Plexus存档器
Built-By: Martijn
内置于:马丁(Martijn)
Created-By: Apache Maven 3.3.9
创建者:Apache Maven 3.3.9
Build-Jdk: 1.8.0_131
Build-Jdk:1.8.0_131
Main-Class: com.mpolder.harambot.Main
主要类别:com.mpolder.harambot.Main
找到它,必须将其导出为胖子才能包含依赖项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.