我有一个使用Netbean IDE开发的Java应用程序,需要以javaws开头,当我尝试下载并运行应用程序时,出现以下错误,
*JNLP1*
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="http://192.168.1.200/ofmex/launch.jnlp" spec="1.0+">
<information>
<title>Basic Application Example</title>
<vendor>Sun Microsystems Inc.</vendor>
<homepage href="http://192.168.1.200/ofmex"/>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">Basic Application Example</description>
<icon href="http://192.168.1.200/ofmex/MnuIcon.gif" kind="default"/>
</information>
<update check="background"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+"/>
<jar href="http://192.168.1.200/ofmex/OFMEX_MANUFACTURING.jar" main="true"/>
<jar href="http://192.168.1.200/ofmex/lib/AbsoluteLayout.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/activation.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/ant-1.7.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/antlr-2.7.5.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/antlr-2.7.6.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/appframework-1.0.3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/asm-attrs.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/asm.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/barbecue-1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/barbecue-1.5-beta1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/barcode4j-2.0.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-anim.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-awt-util.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-bridge.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-css.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-dom.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-ext.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-gvt.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-parser.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-script.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-svg-dom.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-svggen.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-util.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/batik-xml.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/bcel-5.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/boot.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/bsh-2.0b4.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/castor-1.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/cglib-2.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/cincom-jr-xmla.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport-addons.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport-components.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport-designer-standalone.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport-heartbeat.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport-jasperserver.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport-samples.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-ireport.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/com-jaspersoft-jrx.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-beanutils-1.8.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-collections-2.1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-collections-3.2.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-dbcp-1.2.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-digester-1.7.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-javaflow-20060411.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-logging-1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-logging-api-1.0.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-math-1.0.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-net-1.4.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-pool-1.3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/commons-vfs-1.0.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core-renderer.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_de.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_es.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_fr.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_ireport.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_it.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_ja.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_de.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_es.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_it.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_ja.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_pt_BR.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_zh_CN.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_nb_zh_TW.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_pl.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_pt_BR.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_sq.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_zh_CN.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/core_zh_TW.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/DateChooser.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/ddl.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/dom4j-1.6.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/ehcache-1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/eigenbase-properties-1.1.0.10924.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/eigenbase-properties.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/eigenbase-resgen-1.3.0.11873.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/eigenbase-resgen.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/eigenbase-xom-1.3.0.11999.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/eigenbase-xom.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/ejb3-persistence.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/flexdock-0.4.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/groovy-all-1.5.5.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/hibernate-annotations.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/hibernate-commons-annotations.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/hibernate3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/hsqldb-1.7.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/hsqldb-1.8.0-10.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/iReport.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/iText-2.1.7.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/iTextAsian.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jakarta-bcel-20050813.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jakarta-oro-2.0.8.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/JasperBabylon-1.0.0.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jasperreports-3.7.4.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jasperreports-applet-3.7.4.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jasperreports-chart-themes-3.7.3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jasperreports-extensions-3.5.3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jasperreports-fonts-3.7.4.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jasperreports-javaflow-3.7.4.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/javacup.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/javassist-3.4.GA.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jaxb-api.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jaxb-impl.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jaxb-xjc.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jaxen-1.1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jcmdline-1.0.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jcommon-1.0.0.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jcommon-1.0.15.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jdt-compiler-3.1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jfreechart-1.0.12.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jh-2.0_05.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jna-3.0.9.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jpa.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_activation-1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_axis-1.4patched.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_commons-codec-1.3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_commons-discovery-0.2.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_commons-httpclient-3.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_jasperserver-common-ws-3.5.0.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_jaxrpc.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_mail-1.4.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_saaj-api-1.3.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/js_wsdl4j-1.5.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jsmoothgen-ant-0.9.7.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jsr173_api.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jta.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/junit-4.5.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jxl-2.6.10.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/jxl-2.6.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/log4j-1.2.15.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/log4j-1.2.9.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/looks-2.0-rc.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/mail.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/microba-0.4.1-bin.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/mondrian-2.3.2.8944.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/mondrian-3.1.1.12687.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/mysql-connector-java-5.1.12-bin.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/nsisant-1.1.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/png-encoder-1.5.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/poi-3.0.1-FINAL-20070705.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/poi-3.5-FINAL-20090928.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/poi-3.6.jar
</resources>
<application-desc main
jnlp file truncated after 10K
例外:
JNLParseException[ Could not parse launch file. Error at line 0.]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
包装的异常:
java.lang.NullPointerException
at com.sun.deploy.xml.XMLParser.parseXMLAttribute(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
at com.sun.deploy.xml.XMLParser.parseXMLElement(Unknown Source)
.....
我该如何解决这个问题?
这是我的launch.jnlp,但错误消息中显示了JNLP1,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://192.168.1.200/ofmex/." href="launch.jnlp" spec="1.0+">
<information>
<title>Basic Application Example</title>
<vendor>Sun Microsystems Inc.</vendor>
<homepage href="http://appframework.dev.java.net"/>
<description>A simple java desktop application based on Swing Application Framework</description>
<description kind="short">Basic Application Example</description>
<icon href="MnuIcon.gif" kind="default"/>
</information>
<update check="background"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+"/>
<jar href="OFMEX_MANUFACTURING.jar" main="true"/>
<jar href="lib/AbsoluteLayout.jar"/>
<jar href="lib/activation.jar"/>
<jar href="lib/ant-1.7.1.jar"/>
<jar href="lib/antlr-2.7.5.jar"/>
<jar href="lib/antlr-2.7.6.jar"/>
<jar href="lib/appframework-1.0.3.jar"/>
<jar href="lib/asm-attrs.jar"/>
<jar href="lib/asm.jar"/>
<jar href="lib/barbecue-1.1.jar"/>
<jar href="lib/barbecue-1.5-beta1.jar"/>
<jar href="lib/barcode4j-2.0.jar"/>
<jar href="lib/batik-anim.jar"/>
<jar href="lib/batik-awt-util.jar"/>
<jar href="lib/batik-bridge.jar"/>
<jar href="lib/batik-css.jar"/>
<jar href="lib/batik-dom.jar"/>
<jar href="lib/batik-ext.jar"/>
<jar href="lib/batik-gvt.jar"/>
<jar href="lib/batik-parser.jar"/>
<jar href="lib/batik-script.jar"/>
<jar href="lib/batik-svg-dom.jar"/>
<jar href="lib/batik-svggen.jar"/>
<jar href="lib/batik-util.jar"/>
<jar href="lib/batik-xml.jar"/>
<jar href="lib/bcel-5.2.jar"/>
<jar href="lib/boot.jar"/>
<jar href="lib/bsh-2.0b4.jar"/>
<jar href="lib/castor-1.2.jar"/>
<jar href="lib/cglib-2.1.jar"/>
<jar href="lib/cincom-jr-xmla.jar"/>
<jar href="lib/com-jaspersoft-ireport-addons.jar"/>
<jar href="lib/com-jaspersoft-ireport-components.jar"/>
<jar href="lib/com-jaspersoft-ireport-designer-standalone.jar"/>
<jar href="lib/com-jaspersoft-ireport-heartbeat.jar"/>
<jar href="lib/com-jaspersoft-ireport-jasperserver.jar"/>
<jar href="lib/com-jaspersoft-ireport-samples.jar"/>
<jar href="lib/com-jaspersoft-ireport.jar"/>
<jar href="lib/com-jaspersoft-jrx.jar"/>
<jar href="lib/commons-beanutils-1.8.2.jar"/>
<jar href="lib/commons-collections-2.1.1.jar"/>
<jar href="lib/commons-collections-3.2.1.jar"/>
<jar href="lib/commons-dbcp-1.2.2.jar"/>
<jar href="lib/commons-digester-1.7.jar"/>
<jar href="lib/commons-javaflow-20060411.jar"/>
<jar href="lib/commons-logging-1.1.jar"/>
<jar href="lib/commons-logging-api-1.0.2.jar"/>
<jar href="lib/commons-math-1.0.jar"/>
<jar href="lib/commons-net-1.4.1.jar"/>
<jar href="lib/commons-pool-1.3.jar"/>
<jar href="lib/commons-vfs-1.0.jar"/>
<jar href="lib/core-renderer.jar"/>
<jar href="lib/core.jar"/>
<jar href="lib/core_de.jar"/>
<jar href="lib/core_es.jar"/>
<jar href="lib/core_fr.jar"/>
<jar href="lib/core_ireport.jar"/>
<jar href="lib/core_it.jar"/>
<jar href="lib/core_ja.jar"/>
<jar href="lib/core_nb_de.jar"/>
<jar href="lib/core_nb_es.jar"/>
<jar href="lib/core_nb_it.jar"/>
<jar href="lib/core_nb_ja.jar"/>
<jar href="lib/core_nb_pt_BR.jar"/>
<jar href="lib/core_nb_zh_CN.jar"/>
<jar href="lib/core_nb_zh_TW.jar"/>
<jar href="lib/core_pl.jar"/>
<jar href="lib/core_pt_BR.jar"/>
<jar href="lib/core_sq.jar"/>
<jar href="lib/core_zh_CN.jar"/>
<jar href="lib/core_zh_TW.jar"/>
<jar href="lib/DateChooser.jar"/>
<jar href="lib/ddl.jar"/>
<jar href="lib/dom4j-1.6.jar"/>
<jar href="lib/ehcache-1.1.jar"/>
<jar href="lib/eigenbase-properties-1.1.0.10924.jar"/>
<jar href="lib/eigenbase-properties.jar"/>
<jar href="lib/eigenbase-resgen-1.3.0.11873.jar"/>
<jar href="lib/eigenbase-resgen.jar"/>
<jar href="lib/eigenbase-xom-1.3.0.11999.jar"/>
<jar href="lib/eigenbase-xom.jar"/>
<jar href="lib/ejb3-persistence.jar"/>
<jar href="lib/flexdock-0.4.1.jar"/>
<jar href="lib/groovy-all-1.5.5.jar"/>
<jar href="lib/hibernate-annotations.jar"/>
<jar href="lib/hibernate-commons-annotations.jar"/>
<jar href="lib/hibernate3.jar"/>
<jar href="lib/hsqldb-1.7.1.jar"/>
<jar href="lib/hsqldb-1.8.0-10.jar"/>
<jar href="lib/iReport.jar"/>
<jar href="lib/iText-2.1.7.jar"/>
<jar href="lib/iTextAsian.jar"/>
<jar href="lib/jakarta-bcel-20050813.jar"/>
<jar href="lib/jakarta-oro-2.0.8.jar"/>
<jar href="lib/JasperBabylon-1.0.0.jar"/>
<jar href="lib/jasperreports-3.7.4.jar"/>
<jar href="lib/jasperreports-applet-3.7.4.jar"/>
<jar href="lib/jasperreports-chart-themes-3.7.3.jar"/>
<jar href="lib/jasperreports-extensions-3.5.3.jar"/>
<jar href="lib/jasperreports-fonts-3.7.4.jar"/>
<jar href="lib/jasperreports-javaflow-3.7.4.jar"/>
<jar href="lib/javacup.jar"/>
<jar href="lib/javassist-3.4.GA.jar"/>
<jar href="lib/jaxb-api.jar"/>
<jar href="lib/jaxb-impl.jar"/>
<jar href="lib/jaxb-xjc.jar"/>
<jar href="lib/jaxen-1.1.1.jar"/>
<jar href="lib/jcmdline-1.0.2.jar"/>
<jar href="lib/jcommon-1.0.0.jar"/>
<jar href="lib/jcommon-1.0.15.jar"/>
<jar href="lib/jdt-compiler-3.1.1.jar"/>
<jar href="lib/jfreechart-1.0.12.jar"/>
<jar href="lib/jh-2.0_05.jar"/>
<jar href="lib/jna-3.0.9.jar"/>
<jar href="lib/jpa.jar"/>
<jar href="lib/js_activation-1.1.jar"/>
<jar href="lib/js_axis-1.4patched.jar"/>
<jar href="lib/js_commons-codec-1.3.jar"/>
<jar href="lib/js_commons-discovery-0.2.jar"/>
<jar href="lib/js_commons-httpclient-3.1.jar"/>
<jar href="lib/js_jasperserver-common-ws-3.5.0.jar"/>
<jar href="lib/js_jaxrpc.jar"/>
<jar href="lib/js_mail-1.4.jar"/>
<jar href="lib/js_saaj-api-1.3.jar"/>
<jar href="lib/js_wsdl4j-1.5.1.jar"/>
<jar href="lib/jsmoothgen-ant-0.9.7.jar"/>
<jar href="lib/jsr173_api.jar"/>
<jar href="lib/jta.jar"/>
<jar href="lib/junit-4.5.jar"/>
<jar href="lib/jxl-2.6.10.jar"/>
<jar href="lib/jxl-2.6.jar"/>
<jar href="lib/log4j-1.2.15.jar"/>
<jar href="lib/log4j-1.2.9.jar"/>
<jar href="lib/looks-2.0-rc.jar"/>
<jar href="lib/mail.jar"/>
<jar href="lib/microba-0.4.1-bin.jar"/>
<jar href="lib/mondrian-2.3.2.8944.jar"/>
<jar href="lib/mondrian-3.1.1.12687.jar"/>
<jar href="lib/mysql-connector-java-5.1.12-bin.jar"/>
<jar href="lib/nsisant-1.1.jar"/>
<jar href="lib/png-encoder-1.5.jar"/>
<jar href="lib/poi-3.0.1-FINAL-20070705.jar"/>
<jar href="lib/poi-3.5-FINAL-20090928.jar"/>
<jar href="lib/poi-3.6.jar"/>
<jar href="lib/rex-20070125.jar"/>
<jar href="lib/rhino-1.7R1.jar"/>
<jar href="lib/saaj-api-1.3.jar"/>
<jar href="lib/serializer.jar"/>
<jar href="lib/servlet.jar"/>
<jar href="lib/spring-2.0-m2.jar"/>
<jar href="lib/spring-beans-2.5.5.jar"/>
<jar href="lib/spring-context-2.0-m2.jar"/>
<jar href="lib/spring-core-2.5.5.jar"/>
<jar href="lib/spring-hibernate3-2.0-m2.jar"/>
<jar href="lib/sqleonardo-2007.03.jar"/>
<jar href="lib/swing-worker-1.1.jar"/>
<jar href="lib/swingx-2007_05_13.jar"/>
<jar href="lib/tinylaf.jar"/>
<jar href="lib/toniclf.jar"/>
<jar href="lib/xalan-2.7.1.jar"/>
<jar href="lib/xalan.jar"/>
<jar href="lib/xercesImpl-2.7.0.jar"/>
<jar href="lib/xercesImpl.jar"/>
<jar href="lib/xml-apis-ext.jar"/>
<jar href="lib/xml-apis.jar"/>
<jar href="lib/swing-layout-1.0.4.jar"/>
<jar href="lib/poi-3.5-FINAL-20090928.jar"/>
<jar href="lib/jcalendar-1.4.jar"/>
<jar href="lib/jasperreports-4.0.2.jar"/>
<jar href="lib/jasperreports-chart-themes-4.0.2.jar"/>
<jar href="lib/jasperreports-fonts-4.0.2.jar"/>
<jar href="lib/jfreechart-1.0.14.jar"/>
</resources>
<application-desc main-class="COMMON.FrmSplashScreen">
</application-desc>
</jnlp>
最佳答案
<jar href="http://192.168.1.200/ofmex/lib/poi-3.5-FINAL-20090928.jar"/>
<jar href="http://192.168.1.200/ofmex/lib/poi-3.6.jar
</resources>
<application-desc main
jnlp file truncated after 10K
在JNLP中,用于
jar
的poi-3.6.jar
元素是否格式正确?我怀疑所有问题都与
jnlp file truncated after 10K
有关。可能有必要将某些档案移至扩展名。更好的是,因为即使在损坏的元素之前,它也可以存储143个档案,所以请认真查看是否需要在应用程序的运行时类路径上使用大量的Jars。首先。它似乎是一个巨大的应用程序,可以下载。无论哪种方式,请确保使用JaNeLA检查JNLP。那可能揭示其他错误。
顺便说一句,将JNLP元素从..更改为
<jnlp href="http://192.168.1.200/ofmex/launch.jnlp" spec="1.0+">
..至..
<jnlp codebase="http://192.168.1.200/ofmex" href="launch.jnlp" spec="1.0+">
..然后从所示的JNLP中的所有其他HREF中删除
http://192.168.1.200/ofmex
,将大大减小尺寸。Old 9879
New 5950
发布答案时,我没有注意到您的编辑。此部分特定于完整的JNLP。
再次,该JNLP有很多可疑元素。例如:
1.同一API的重复版本。
<jar href="lib/jfreechart-1.0.12.jar"/>
// ..much later..
<jar href="lib/jfreechart-1.0.14.jar"/>
似乎会使用第一个,但为什么都提到这两个呢?
2. RC和Beta Jars。
<jar href="lib/looks-2.0-rc.jar"/>
...
<jar href="lib/barbecue-1.5-beta1.jar"/>
3. jar元素中的二进制档案。
<jar href="lib/microba-0.4.1-bin.jar"/>
...
<jar href="lib/mysql-connector-java-5.1.12-bin.jar"/>
如果这些Jar实际上包含本机,则应在
nativelib
元素中提及它们,并将其放入OS专用资源部分。4.“您可能在客户端应用程序中需要什么”。类别?
对于需要在富客户端桌面应用程序中使用这些API的原因,或者至少为什么在需要1.6及更高版本的桌面客户端中需要使用这些API的问题,我无法理解。
<jar href="lib/servlet.jar"/>
..
<jar href="lib/swing-worker-1.1.jar"/> // has been in J2SE since 1.6
..
<jar href="lib/swing-layout-1.0.4.jar"/> // probably has been in J2SE since 1.2
..
<jar href="lib/junit-4.5.jar"/>
关于java - 尝试启动应用程序时,JNLP文件中出现错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9306028/