Java Web Start "Cannot find cached resource for URL"

On Windows 7 and 8 with JRE 7 update 21 (32-bit in both cases), I ran into Cannot find cached resource for URL yyyyyyyyyyy.jar for a JWS application that worked in JRE before update 21. If I try to download yyyyyyyyyyy .jar placing it in the browser, it works great. This is the "main" jar file in my JNLP file.

+4
source share
4 answers

The solution for me was in the Java control panel -> General -> Temporary file settings:

  • Click "Delete Files ..." and select all options.
  • Disable "Store temporary files on my computer."

There is a video showing the following steps: https://www.youtube.com/watch?v=uI9RbmT9PKs

+2
source

The actual problem probably comes down to your web server sending an “Cache-Control” HTTP header with a value of “no-store” to avoid caching. However, specifying "no-store" means that the JWS cannot store the resources specified in your JNLP file.

To avoid this problem, without disabling “Store temporary files on my computer”, as this allows the application to work offline, I updated the Apache web server configuration to send the following in order to disable intermediate proxies from caching content:

 Header set Cache-Control "no-cache, must-revalidate, max-age=0" Header set Pragma "no-cache" 
+3
source

"Click" Delete files ... "and select all options." just how to call the web launch resource again (.jnlp / JNLP file), otherwise you will have to download all the files again and again.

0
source

Upgrade from Java 7 to Java 8 to fix this.

0
source

Source: https://habr.com/ru/post/1485693/


All Articles