java update45,javaws:Java 7更新45.无法发送属性

博客讨论了Java 7 Update 45中遇到的无法设置属性的问题。根据OpenJDK的bug报告,提供了三个可能的解决方法:签署jnlp文件、使用安全属性以及在应用中转换不安全属性。由于更改代码库不是首选项,因此建议采用签署jnlp文件的方案。
摘要由CSDN通过智能技术生成

With the new Java 7 update 45, we are not able to set properties. We used to set it as follows

...

...

We tried the work around, tried the following

...

...

even tried "javaws." added as prefix.

Problem is we that we want to avoid making change in the codebase and want to fix the issue in the jnlp level.

Do we have any other work around or any ideas?

解决方案

According to this OpenJDK bug report (https://bugs.openjdk.java.net/browse/JDK-8023821) there are three possible workarounds:

Sign the jnlp file.

Use either a signed-jnlp file (JNLP-INF/APPLICATION.JNLP) or a signed jnlp template (JNLP-INF/APPLICATION_TEMPLATE.JNLP).

Use secure properties.

Change all the properties in the jnlp file to pre-pend "jnlp." to the property name, and modify all code to use the new properties name.

Use secure properties and translate them in the main of your signed application to insecure properties.

Change jnlp files to have the property names in the jnlp file pre-pended with "jnlp.myapp.", then in your application read the system properties and for each property starting with "jnlp.myapp." set the corresponding property without the "jnlp.myapp." pre-pended to the name.

It sounds like 2 and 3 are not what you want. So that leaves you with option 1. (Or accept that you need to change your codebase.)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值