在Java Web Start应用程序中禁用字节码验证 [英] disable bytecode verification in java web start application

查看:343
本文介绍了在Java Web Start应用程序中禁用字节码验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java Web Start应用程序,我需要从jnlp文件中禁用字节码验证。

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

这可以通过设置JAVAWS_VM_ARGS = -noverify 或设置 -Xverify:none 轻松完成。 文档在这里说: Web Start不支持在 jnlp文件中添加这些参数。

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.

我尝试过:

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

在资源标签下,但会跳过 -noverify 并接受其他两个。

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

我们将提供任何帮助。

推荐答案


...但是这里的文档说Web Start不支持在jnlp文件中添加这些参数。

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

海事组织。如果可以禁用字节码验证,则可以破坏JVM类型安全性,并破坏JNLP安全沙箱。

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.

这篇关于在Java Web Start应用程序中禁用字节码验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆