【问题标题】:Failed to find Premain-Class manifest attribute in ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jar在 ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jar 中找不到 Premain-Class 清单属性
【发布时间】:2016-12-06 02:17:39
【问题描述】:

我按照这个链接运行信号服务器的指南:

https://github.com/lucaconte/BeatTheMeddler

当我在这一步尝试运行 PushServer 时:

java -jar Push-Server-<VERSION>-capsule-fat.jar server YourPushServerConfigFile.yml

然后出现错误:

Failed to find Premain-Class manifest attribute in ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jar Error occurred during initialization of VM agent library failed to init: instrument CAPSULE: Client connection failed. CAPSULE EXCEPTION: Accept timed out while processing null null: null (for stack trace, run with -Dcapsule.log=verbose)

我已经使用这两个脚本创建了清单,并将主类指向 netbeans 中的PushServer.java,但问题仍然存在。

jar -tf Push-Server-0.12.0-capsule-fat.jar

jar -xf Push-Server-0.12.0-capsule-fat.jar META-INF/MANIFEST.MF

有人知道是什么问题吗?

【问题讨论】:

    标签: java maven sockets netbeans signals


    【解决方案1】:

    好的,这是胶囊问题

    pom.xml 中将版本更改为较新的版本,在我的情况下为 1.0.1

    <!-- <capsule.maven.plugin.version>0.10.0</capsule.maven.plugin.version>-->
         <capsule.maven.plugin.version>1.0.1</capsule.maven.plugin.version>
    

    来自: https://github.com/puniverse/capsule/issues/89

    【讨论】:

      猜你喜欢
      • 2017-02-19
      • 1970-01-01
      • 2019-08-11
      • 2011-01-17
      • 2021-07-14
      • 2021-04-23
      • 2016-12-31
      • 2014-12-02
      • 1970-01-01
      相关资源
      最近更新 更多