4

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.

2
  • Be sure to check the JNLP using JaNeLA. Commented Jun 12, 2013 at 16:05
  • @AndrewThompson that was the first thing I did, having found this advice in another SO comment by you :-) Commented Jun 13, 2013 at 17:44

4 Answers 4

3

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"
Sign up to request clarification or add additional context in comments.

Comments

2

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

1 Comment

I believe this will disable applications from being run in offline mode as you are never caching them.
0

"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.

1 Comment

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.
0

Upgrade from Java 7 to Java 8 to fix this.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.