Can a signed Jar be run as an executable?

≯℡__Kan透↙ 提交于 2019-12-11 14:57:53

问题


I ask because I have an unsigned jar that runs and a signed version that doesn't. Looking at the manifests, I see no main class thing for the signed one.

Do I have to run a signed jar from web start?


回答1:


Not necessarily, but if you don't have a Main-class: in the manifest, you can't run it as an executable. If you know the main class, you can run it using the java executable, eg

$ java -classpath ./myjar.jar MyClass



回答2:


Sounds like you build process is updated the manifast.mf




回答3:


you need to sign your jar to run outside of the web start sandbox......

google here



来源:https://stackoverflow.com/questions/601088/can-a-signed-jar-be-run-as-an-executable

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