Java 系统级部署.properties

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19444094/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 17:13:01  来源:igfitidea点击:

Java system level deployment.properties

javaconfigjava-web-start

提问by iqpolar

Since 7u10, Java show new "out of date" warning if not using newest jre version. Java updates have been cause problems for our Java Web Start application. We want test our application with new update before we can say to our customers that its ok to update Java. I have trying to block new "out of date" warning in system level with no results. I have created two files deployment.config and deployment.properties in path C:\WINDOWS\Sun\Java\Deployment\ but looks like nothing works.

从 7u10 开始,如果不使用最新的 jre 版本,Java 会显示新的“过时”警告。Java 更新已导致我们的 Java Web Start 应用程序出现问题。我们想用新的更新测试我们的应用程序,然后我们才能告诉我们的客户可以更新 Java。我试图在系统级别阻止新的“过时”警告,但没有结果。我在路径 C:\WINDOWS\Sun\Java\Deployment\ 中创建了两个文件 deployment.config 和 deployment.properties,但看起来没有任何效果。

deployment.config-file:

deployment.config 文件:

deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
deployment.system.config.mandatory=true

deployment.properties-file:

deployment.properties 文件:

deployment.javaws.autodownload=NEVER
deployment.expiration.check.enabled=false

Oracle Deployment Configuration File and Properties doc

Oracle 部署配置文件和属性文档

采纳答案by Justin

deployment.system.config is the URL to the system (enterprise-wide) deployment.properties file. This property can be used by system administrators to centrally administer or "lock-down" user-specific configuration settings. For local files, use the file protocol in the URL, for example, file:///C:/Windows/Sun/Java/Deployment/deployment.properties.

deployment.system.config 是系统(企业范围)deployment.properties 文件的 URL。系统管理员可以使用此属性来集中管理或“锁定”特定于用户的配置设置。对于本地文件,请使用 URL 中的文件协议,例如 file:///C:/Windows/Sun/Java/Deployment/deployment.properties。

Source: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/properties.html

来源:http: //docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/properties.html

Note the forward slashes (I had this issue before).

注意正斜杠(我以前遇到过这个问题)。

回答by Jean-Fran?ois Van Roy

This deployment.expiration.check.enabled=false property works only starting from Java 7 Update 40 Which version are you testing ?

此 deployment.expiration.check.enabled=false 属性仅从 Java 7 Update 40 开始您正在测试哪个版本?

回答by TonyD

Your folder path is wrong - C\:/WINDOWS/Sun/Java/Deployment/deployment.properties

您的文件夹路径错误 - C\:/WINDOWS/Sun/Java/Deployment/deployment.properties

Try C:\Windows\Sun\Java\Deployment\deployment.properties

试试 C:\Windows\Sun\Java\Deployment\deployment.properties