Failed to find Premain-Class manifest attribute in …\PushServer\target\Push-Server-0.12.0-capsule-fat.jar

懵懂的女人 提交于 2020-01-15 10:27:51

问题


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

https://github.com/lucaconte/BeatTheMeddler

When i try to run the PushServer at this step:

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

Then an error raised:

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)

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:


ok, this is the capsule issue

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>

from: https://github.com/puniverse/capsule/issues/89



来源:https://stackoverflow.com/questions/40986742/failed-to-find-premain-class-manifest-attribute-in-pushserver-target-push-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!