将文本文档放在名为deployment.properties c:\ windows \ sun \ Java \ deployment \ deployment.properties的位置

尽管Java文档说的是,除非要使用manditory设置,否则不需要deployment.config文件。

此文件将更改计算机上每个用户的默认值,即使他们的appdata文件夹中已有deployment.properties文件也是如此。您可以在打开java 32控制面板时验证设置是否生效,因为它会读取设置。

以下是我们在deployment.properties文件中添加的一些内容。

#disables the java desktop shortcut on install - might not be required for modern versions

deployment.javaws.shortcut="NEVER"

#tells sets security level to it's minimum "MEDIUM" to allow for apps to run on outdated java versions

deployment.security.level=MEDIUM

#disabled certificate checking so that java apps load much faster. Java still checks the certificate

#blacklist though so the certificate is still used.

deployment.security.validation.ocsp=true

#moves the user trusted certificates store to a shared location so we can pre-approve controls

deployment.user.security.trusted.certs=C\:\\Program Files\\Java\\jre7\\security\\trusted.certs

最后一点是摆脱“你想运行这个应用程序”框的最佳方法。将trusted.certs位置设置为共享位置后,通过手动选中“不再显示此项”框来创建您自己的trusted.certs文件。他们使用此deployment.properties文件和中提琴将此trusted.certs文件部署到您的所有计算机,不再有安全弹出窗口。

请注意,路径中的额外斜杠是必需的。冒号是保留字符,反斜杠是转义字符。

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐