无法在... \ PushServer \ target \ Push-Server-0.12.0-capsule-fat.jar中找到Premain-Class清单属性 [英] Failed to find Premain-Class manifest attribute in ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jar

查看:112
本文介绍了无法在... \ PushServer \ target \ Push-Server-0.12.0-capsule-fat.jar中找到Premain-Class清单属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此链接上遵循运行信号服务器的指南:

I follow the guide to running signal server at this link:

https://github.com/lucaconte/BeatTheMeddler

当我尝试在此步骤中运行PushServer时:

When i try to run the PushServer at this step:

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)

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,但是问题仍然存在.

I've been create manifest with this two scripts and also point main class to PushServer.java in netbeans, but the problem persist.

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

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

任何人都知道问题出在哪里吗?

Anyone know what the issue is?

推荐答案

好的,这是胶囊问题

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

in pom.xml change the version to newer, in my case 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

这篇关于无法在... \ PushServer \ target \ Push-Server-0.12.0-capsule-fat.jar中找到Premain-Class清单属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆