简体   繁体   English

Java系统级Deployment.properties

[英]Java system level deployment.properties

Since 7u10, Java show new "out of date" warning if not using newest jre version. 从7u10开始,如果未使用最新的jre版本,Java将显示新的“过时”警告。 Java updates have been cause problems for our Java Web Start application. Java更新已成为Java Web Start应用程序的问题。 We want test our application with new update before we can say to our customers that its ok to update Java. 我们想用新的更新来测试我们的应用程序,然后才能对客户说可以更新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. 我已经在路径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部署配置文件和属性文档

deployment.system.config is the URL to the system (enterprise-wide) deployment.properties file. deployment.system.config是系统(企业范围)deployment.properties文件的URL。 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. 对于本地文件,请使用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). 注意正斜杠(我之前有这个问题)。

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM