MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    [求助] Mirai-Core项目打包为Jar文件时无法找到主类

    技术交流板块
    1
    1
    279
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Allenyou1126
      Allenyou1126 last edited by

      如题,已经正确配置MANIFEST,并且在生成的Jar文件中也能找到所需要的class文件,但执行时无法找到主类。
      尝试过使用java -cp [name].jar package.to.Main命令启动,但同样找不到主类。
      使用jar -tf能看到相关类存在。
      What the hell is that

      1 Reply Last reply Reply Quote 1
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact