Hallo allerseits,
ohne eure Hilfe komme ich nicht weiter
ich habe die folgende jnlp-datei geschrieben, um eine xxx.jar datei starten zu können.
als lokaler server starte ich XAMPP. Meine Anwendung, die gestartet werden soll ist lib/xxx.jar. Nun wenn ich die jnlp-datei mit doppelclick starte, bekomme die folgende fehlermeldung:
startdatei:
Ausnahme:
Hat jemand Ahnung, woran der Fehler liegen könnte?
Für eure Tipps wäre ich sehr dankbar,
omen
ohne eure Hilfe komme ich nicht weiter
ich habe die folgende jnlp-datei geschrieben, um eine xxx.jar datei starten zu können.
Code:
<jnlp spec="6.0+" codebase="http://localhost/mylocalHost" href="xxx.jnlp"> <information> <title> testTitle </title> <vendor>TestVendor</vendor> <homepage href="http://localhost/testHomepage"/> <description>testDescription</description> <description kind="short">testShortD</description> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.6"/> <jar href="lib/xxx.jar"/> </resources> <application-desc main-class="de.xx.xx.Main"/> </jnlp>
startdatei:
Code:
{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}} {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\lang1031\f0\fs20 <?xml version="1.0" encoding="utf-8"?> \par <!-- JNLP File for SwingSet2 Demo Application --> \par <jnlp \par \pard\tx2982 spec="6.0+" \par \pard codebase="http://localhost/myLocalHost" \par href="flashcards.jnlp"> \par <information> \par <title> t </title> \par <vendor>S</vendor> \par <homepage href="http://localhost/myLocalHost"/> \par <description>SwingSet2 Demo</description> \par <description kind="short">A demo of the \par capabilities of the Swing Graphical \par User Interface.</description> \par <offline-allowed/> \par </information> \par <security> \par <all-permissions/> \par </security> \par <resources> \par <j2se version="1.6"/> \par <jar href="lib/flashcards.jar"/> \par </resources> \par <application-desc main-class="de.tud.cs.se.flashcards.monolithic.Main"/> \par </jnlp> \par }
Code:
MissingFieldException[ Das folgende erforderliche Feld fehlt in der Startdatei: <jnlp>] 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.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(Unknown Source)
Hat jemand Ahnung, woran der Fehler liegen könnte?
Für eure Tipps wäre ich sehr dankbar,
omen
Comment