java8update161和171区别,JRE 8u171无法使用Java Web Start脱机模式

Does anyone still uses Java Web Start? Well I certanly have to.

I have an application that needs to run in online and offline mode. Online for getting updates, but the actual use case is offline.

Up to jre8u161 that worked fine. But with the current Updates 171 and 172 the application won't start in offline mode.

If I force it to offline mode with the Java Cache Viewer I get the exception:

com.sun.deploy.net.FailedDownloadException: Ressource kann nicht heruntergeladen werden. System ist offline. (Resource can not be downloaded. System is offline.)

at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)

at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)

at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)

at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)

at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)

at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)

at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)

at com.sun.javaws.Launcher.prepareResources(Unknown Source)

at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)

at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)

at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)

at com.sun.javaws.Launcher.launch(Unknown Source)

at com.sun.javaws.Main.launchApp(Unknown Source)

at com.sun.javaws.Main.continueInSecureThread(Unknown Source)

at com.sun.javaws.Main.access$000(Unknown Source)

at com.sun.javaws.Main$1.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

If I start it with javaws -offline I get the message "Anwedung im Offlinebetrieb nicht verfügbar" (Application in offline mode not available).

I created a minimal application with this jnlp-file:

Base Test

But this also won't start in offline mode.

What else can I do?

解决方案

This is fixed in later version of JAVA (able to launch jnlp in offline mode with java 10 )

There is no way to launch JNLP in off line mode with 8-171 java update.

FOR DESKTOP SHORTCUT LAUNCH

One of the work around would be(It is just a hack)

1. create 2 different jnlp one for java 8-171 and another for launch jnlp in offline mode for other java versions.

Create a launcher jnlp app which detect version of java on client local and launch respective jnlp.

(I am current working on it will update code when done)

USE this config in JNLP

JAVA 8 171

JAVA OTHER version

`

`

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值