标签: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 &
标签:get park classpath bsp 运行 invalid manifest process tin
原文地址:https://www.cnblogs.com/jiangzhaowei/p/9505118.html