尝试使用jnlp部署java小程序

尝试使用jnlp部署java小程序,java,deployment,applet,jnlp,next-generation-plugin,Java,Deployment,Applet,Jnlp,Next Generation Plugin,我正在尝试使用jnlp部署小程序 我的jnlp文件: 动态树 动态 我的小程序代码: <script src="http://www.java.com/js/deployJava.js"></script> <script> var attributes = { id:'DynamicApplet', code:'jstojava.dynamicTreeApplet',} ; var parameters = {jnlp_href:'./a

我正在尝试使用jnlp部署小程序

我的jnlp文件:


动态树
动态
我的小程序代码:

<script src="http://www.java.com/js/deployJava.js"></script>
<script>
    var attributes = { id:'DynamicApplet', code:'jstojava.dynamicTreeApplet',} ;
    var parameters = {jnlp_href:'./appletjars/dynamictree-applet.jnlp'} ;
    deployJava.runApplet(attributes, parameters, '1.6');
</script>
我得到的错误是:

execption: The application has requested a version of the JRE (version 1.6) 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..
JNLPException[category: System Configuration : Exception: null : LaunchDesc: 
<jnlp spec="1.6" codebase="http://localhost:8080/docRuleTool/appletjars/" href="http://localhost:8080/docRuleTool/appletjars/dynamictree-applet.jnlp">
  <information>
    <title>dynamictree</title>
    <vendor>dynamic</vendor>
    <homepage href="null"/>
  </information>
  <update check="background" policy="always"/>
  <resources>
    <java href="http://localhost:8080/docRuleTool/appletjars/" version="1.6"/>
    <jar href="http://localhost:8080/docRuleTool/appletjars/dynamictree.jar" download="eager" main="true"/>
    <jar href="http://localhost:8080/docRuleTool/appletjars/prefuse.jar" download="eager" main="true"/>
  </resources>
  <applet-desc name="dynamictree-applet" main-class="com.vaannila.utility.dynamicTreeApplet.class" documentbase="http://localhost:8080/docRuleTool/" width="1000" height="1000"/>
</jnlp> ]
    at sun.plugin2.applet.JNLP2Manager.downloadJREResource(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: JNLPException[category: System Configuration : Exception: null : LaunchDesc: 
<jnlp spec="1.6" codebase="http://localhost:8080/docRuleTool/appletjars/" href="http://localhost:8080/docRuleTool/appletjars/dynamictree-applet.jnlp">
  <information>
    <title>dynamictree</title>
    <vendor>dynamic</vendor>
    <homepage href="null"/>
  </information>
  <update check="background" policy="always"/>
  <resources>
    <java href="http://localhost:8080/docRuleTool/appletjars/" version="1.6"/>
    <jar href="http://localhost:8080/docRuleTool/appletjars/dynamictree.jar" download="eager" main="true"/>
    <jar href="http://localhost:8080/docRuleTool/appletjars/prefuse.jar" download="eager" main="true"/>
  </resources>
  <applet-desc name="dynamictree-applet" main-class="com.vaannila.utility.dynamicTreeApplet.class" documentbase="http://localhost:8080/docRuleTool/" width="1000" height="1000"/>
</jnlp> ]
执行选项:应用程序已请求当前未在本地安装的JRE版本(1.6版)。Java Web Start无法自动下载并安装请求的版本。此JRE必须手动安装。。
JNLPException[类别:系统配置:异常:null:LaunchDesc:
动态树
动态
]
位于sun.plugin2.applet.JNLP2Manager.downloadJREResource(未知源)
位于sun.plugin2.applet.JNLP2Manager.prepareLanchFile(未知源)
位于sun.plugin2.applet.JNLP2Manager.loadJarFiles(未知源)
位于sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(未知源)
位于java.lang.Thread.run(未知源)
异常:JNLPECEPTION[类别:系统配置:异常:null:LaunchDesc:
动态树
动态
]

这一行有问题:

<j2se version="1.6" href="http://localhost:8080/docRuleTool/appletjars/" />

Java Web Start将尝试从href属性中给出的url下载Jre 1.6。更正版本如下:

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


示例JNLP文件可以在这里找到:

问题在于这一行:

<j2se version="1.6" href="http://localhost:8080/docRuleTool/appletjars/" />

Java Web Start将尝试从href属性中给出的url下载Jre 1.6。更正版本如下:

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


示例JNLP文件可以在这里找到:

您安装的JRE/JDK的版本是什么?我想它不是1.6——也许您可以在JNLP中使用
(注意
+
)?您安装的JRE/JDK的版本是什么?我猜它不是1.6——也许您可以在JNLP中使用
(注意
+
)?