disable bytecode verification in java web start application

梦想与她 提交于 2019-12-31 05:05:07

问题


I have a java web start application and i need to disable bytecode verification from within the jnlp file.

This can be done easily by setting JAVAWS_VM_ARGS="-noverify" or by setting -Xverify:none but the documentation here says that web start does not support adding these arguments in jnlp file.

I tried this :

<j2se version="1.6+" java-vm-args="-noverify -showversion -verbose" >

under resources tag but it skips -noverify and takes the other two.

Any help is appreciated.


回答1:


... but the documentation here says that web start does not support adding these arguments in jnlp file.

And rightly so, IMO. If you can disable bytecode verification, you can break JVM type-safety, and defeat the JNLP security sandbox.


If you have to disable bytecode verification to get your application to run, there is something seriously wrong with it. My suggestion is to fix the problem that is causing bytecode verification to fail rather than turning it off.



来源:https://stackoverflow.com/questions/13494004/disable-bytecode-verification-in-java-web-start-application

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