Java web start将无法启动

时间:2013-05-20 11:14:33

标签: java web java-web-start

我制作了一个Java Web启动程序,它在我的计算机上工作正常但是当我尝试在另一台计算机上部署它时,Java Web启动没有启动。

当我检查任务管理器时,我发现javaws.exe在一两秒后启动并退出。

计算机为64位,安装了两个Java环境:JDK 1.6 64bit和JRE 7 32位

当我尝试从命令提示符打开它时,它可以正常工作。

我认为它是由JRE之间的冲突引起的。有任何想法吗?

提前致谢!

修改: 这是代码 ctjnlp.jsp

<%@ page language="java" contentType="application/x-java-jnlp-file; charset=ISO-8859-1"   pageEncoding="ISO-8859-1"%>
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="${urljar}" href="${actionName}?id=${guid}">
 <information>
    <title>Creative Scanner</title>
    <vendor>Creative Technologie</vendor>
 </information>
 <security>
 <all-permissions/>
 </security>
 <resources>
    <j2se version="1.5+"  java-vm-args="-Xms256M -Xmx1024M" />
    <property name="jnlp.versionEnabled" value="false"/>

<jar href="lib/ctScan-0.0.1-SNAPSHOT.jar" main="true"/>
<jar href="lib/httpclient-4.1.jar"/>
<jar href="lib/httpcore-4.1.jar"/>
<jar href="lib/commons-logging-1.1.1.jar"/>
<jar href="lib/commons-codec-1.4.jar"/>
<jar href="lib/httpmime-4.2.5.jar"/>
<jar href="lib/icepdf-core-4.2.0.jar"/>
<jar href="lib/jai-codec-1.1.3.jar"/>
<jar href="lib/jai-core-1.1.3.jar"/>
<jar href="lib/icepdf-viewer-4.2.0.jar"/>
<jar href="lib/batik-awt-util-1.6.jar"/>
<jar href="lib/batik-dom-1.6.jar"/>
<jar href="lib/batik-svg-dom-1.6.jar"/>
<jar href="lib/batik-svggen-1.6.jar"/>
<jar href="lib/batik-util-1.6.jar"/>
<jar href="lib/batik-xml-1.6.jar"/>
<jar href="lib/device-1.0.jar"/>
<jar href="lib/jericho-html-3.3.jar"/>
<jar href="lib/itextpdf-0.0.jar"/>
<jar href="lib/jai-imageio-core-standalone-1.2-pre-dr-b04-2011-07-04.jar"/>
<jar href="lib/com.springsource.javax.media.jai.codec-1.1.3.jar"/>
<jar href="lib/com.springsource.javax.media.jai.core-1.1.3.jar"/>

 </resources>
 <application-desc name="Creative Scanner" main-class="ma.creative.ctScan.CreativeNumerisation">
 <argument>${guid}</argument>
 <argument>${urljar}</argument>
 <argument>${scancompletpage}</argument>
 <argument>${scanuploadpage}</argument>
 <argument>${destinationfolder}</argument>
 </application-desc>
</jnlp>

这是生成的jnlp

的代码
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:9090/archives/" href="jnlp.action?id=c576a5cb-e758-4aeb-9bb3-7fa70cf7d5ca">
 <information>
    <title>Creative Scanner</title>
    <vendor>Creative Technologie</vendor>
 </information>
 <security>
 <all-permissions/>
 </security>
 <resources>
    <j2se version="1.5+"  java-vm-args="-Xms256M -Xmx1024M" />
    <property name="jnlp.versionEnabled" value="false"/>

<jar href="lib/ctScan-0.0.1-SNAPSHOT.jar" main="true"/>
<jar href="lib/httpclient-4.1.jar"/>
<jar href="lib/httpcore-4.1.jar"/>
<jar href="lib/commons-logging-1.1.1.jar"/>
<jar href="lib/commons-codec-1.4.jar"/>
<jar href="lib/httpmime-4.2.5.jar"/>
<jar href="lib/icepdf-core-4.2.0.jar"/>
<jar href="lib/jai-codec-1.1.3.jar"/>
<jar href="lib/jai-core-1.1.3.jar"/>
<jar href="lib/icepdf-viewer-4.2.0.jar"/>
<jar href="lib/batik-awt-util-1.6.jar"/>
<jar href="lib/batik-dom-1.6.jar"/>
<jar href="lib/batik-svg-dom-1.6.jar"/>
<jar href="lib/batik-svggen-1.6.jar"/>
<jar href="lib/batik-util-1.6.jar"/>
<jar href="lib/batik-xml-1.6.jar"/>
<jar href="lib/device-1.0.jar"/>
<jar href="lib/jericho-html-3.3.jar"/>
<jar href="lib/itextpdf-0.0.jar"/>
<jar href="lib/jai-imageio-core-standalone-1.2-pre-dr-b04-2011-07-04.jar"/>
<jar href="lib/com.springsource.javax.media.jai.codec-1.1.3.jar"/>
<jar href="lib/com.springsource.javax.media.jai.core-1.1.3.jar"/>

 </resources>
 <application-desc name="Creative Scanner" main-class="ma.creative.ctScan.CreativeNumerisation">
 <argument>c576a5cb-e758-4aeb-9bb3-7fa70cf7d5ca</argument>
 <argument>http://localhost:9090/archives/</argument>
 <argument>scanComplet.jsp</argument>
 <argument>scanUpload.action</argument>
 <argument>scannerData</argument>
 </application-desc>
</jnlp>

0 个答案:

没有答案