Java Web Start is unable to automatically download and install the requested version

北慕城南 提交于 2019-12-08 04:18:23

问题


I have java 1.6 update 30 installed on my desktop.

The jnlp specifies that the minimum java version is Java 1.7.

However I get this error

Java Web Start Error: The application has requested a version of the JRE (version 1.7+) that currently is not locally installed. Java Web Start is unable to

automatically download and install the requested version. This JRE must be installed manually.

UPDATE:

What does this error mean? How can I force or suggest a java 7 install?

It would be fine if the user was redirected to http://java.com/en/download/index.jsp

I know that that this can be achieved with deployJava.js

Thanks!


回答1:


  1. Add following line to your JNLP file

<java href="http://java.sun.com/products/autodl/j2se" version="1.7+" >

  1. Modify your landing page with following code

add the java script in header

<script src="http://www.java.com/js/deployJava.js"></script>

in your html document body

<p><script> var url="url of your jnlp file "; deployJava.createWebStartLaunchButton(url,'1.7.0');</script></p>

for more information please look at Deploy Rich Internet Application

I hope this will fix your issue



来源:https://stackoverflow.com/questions/16079626/java-web-start-is-unable-to-automatically-download-and-install-the-requested-ver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!