Under Windows 7 and 8 with JRE 7 update 21 (32-bit in both cases), I encounter the error Cannot find cached resource for URL yyyyyyyyyyy.jar
for a JWS application that worked in JREs prior to update 21. If I try to download yyyyyyyyyy.jar by putting it into the browser, it works fine. It is the "main" jar file in my JNLP file.

- 168,117
- 40
- 217
- 433

- 11,459
- 6
- 62
- 111
-
Be sure to check the JNLP using [JaNeLA](http://pscode.org/janela/). – Andrew Thompson Jun 12 '13 at 16:05
-
@AndrewThompson that was the first thing I did, having found this advice in another SO comment by you :-) – Fuhrmanator Jun 13 '13 at 17:44
4 Answers
The actual problem is probably down to your web server sending the HTTP header "Cache-Control" with the value "no-store" to avoid caching. However, by specifying "no-store" it means JWS is unable to store the resources specified in your JNLP file.
To avoid this problem without having to disable "Keep temporary files on my computer" as this allows the application to work in offline mode, I updated my Apache web server configuration to send the following to disable intermediate proxies from caching content:
Header set Cache-Control "no-cache, must-revalidate, max-age=0"
Header set Pragma "no-cache"

- 942
- 6
- 26
The solution for me was in the Java Control Panel -> General -> Temporary File Settings:
- Click "Delete Files..." and chose all options.
- Disable "Keep temporary files on my computer."
There's a video showing these steps: https://www.youtube.com/watch?v=uI9RbmT9PKs

- 11,459
- 6
- 62
- 111
-
I believe this will disable applications from being run in offline mode as you are never caching them. – chrixm Jun 09 '14 at 08:15
"Click "Delete Files..." and chose all options." only, than call the Web Start Resource (a .jnlp/JNLP File) again, else you would have to download all the files again and again.

- 89
- 8
-
When I tried it with only the Delete files, it did not solve the problem. I had to Disable the keep temporary files on my computer. – Fuhrmanator Jun 13 '13 at 17:40