我制作了一个 Java web start 程序,它在我的计算机上运行良好,但是当我尝试在另一台计算机上部署它时,Java web start 没有启动。
当我检查任务管理器时,我发现 javaws.exe 在一两秒后启动并退出。
电脑是64位的,安装了两个java环境:JDK 1.6 64bit和JRE 7 32bit
当我尝试从命令提示符打开它时,它工作正常。
我认为这是由 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>