码迷,mamicode.com
首页 > 其他好文 > 详细

iotBaidu问题小结

时间:2018-08-20 14:37:09      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:get   park   classpath   bsp   运行   invalid   manifest   process   tin   

1、后台程序不能正常运行:

d:\>java -jar MqttService.jar
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
        at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
        at sun.security.util.SignatureFileVerifier.process(Unknown Source)
        at java.util.jar.JarVerifier.processEntry(Unknown Source)
        at java.util.jar.JarVerifier.update(Unknown Source)
        at java.util.jar.JarFile.initializeVerifier(Unknown Source)
        at java.util.jar.JarFile.getInputStream(Unknown Source)
        at sun.misc.JarIndex.getJarIndex(Unknown Source)
        at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
        at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
        at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
        at sun.misc.URLClassPath$3.run(Unknown Source)

解决办法:  删除对应的jar 包下的文件

zip -d spark_scala_demo.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF

2、jar包守护运行:

nohup java -jar MqttService.jar >output 2>&1 &

 

iotBaidu问题小结

标签:get   park   classpath   bsp   运行   invalid   manifest   process   tin   

原文地址:https://www.cnblogs.com/jiangzhaowei/p/9505118.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!