2010-11-23 17 views
5

Ich habe ein Java-Programm, das ich letztlich im Web bereitstellen möchte.Wie erstelle ich eine JNLP-Datei für eine Java-Webanwendung?

Ich begann eine JAR-Datei aus Haufen von Klassen erstellen:

jar CFE tbi.jar trail1modified trail1modified.class InitialKeypad.class InitialKeypad $ 1.class InitialKeypad $ 2.Klasse InitialKeypad $ thehandler .class- InitialKeypad $ thehandler2.class InitialKeypad $ thehandler3.class InitialKeypad $ thehandler4.class Keypad5 $ 1.class Keypad5 $ thehandler.class Tastatur 5 $ thehandler2.class Keypad5 $ thehandler3.class Keypad5.class Keypad6 $ 1.class Keypad6 $ thehandler.class Keypad6 $ thehandler2.class Keypad6 $ thehandler3.class Keypad6.class Keypad7 $ 1.class Keypad7 $ thehandler. Klasse Keypad7 $ thehandler2.class Keypad7 $ thehandler3.class Keypad7.class Keypad8 $ 1.class Keypad8 $ thehandler.class Keypad8 $ thehandler2.class Keypad8 $ thehandler3.class Keypad8.class Keypad9 $ 1.class Keypad9 $ thehandler.class Keypad9 $ thehandler2.class Keypad9 $ thehandler3.class Keypad9.class Keypad10 $ 1.class Keypad10 $ thehandler.class Keypad10 $ thehandler2.class Keypad10 $ thehandler3.class Keypad10.class Keypad11 $ 1.class Keypad11 $ thehandler.class Keypad11 $ thehandler2.class Keypad11 $ thehandler3.class Keypad11.class Keypad12 $ 1.class Keypad12 $ thehandler.class Keypad12 $ thehandler2.class Keypad12 $ thehandler3.class Keypad12.class Keypad13 $ 1.class Keypad13 $ thehandler.class Keypad13 $ thehandler2. Klasse Keypad13 $ thehandler3.class Keypad13 $ thehandler4.class Keypad13.class Keypad14 $ 1.class Keypad14 $ thehandler.class Keypad14 $ thehandler2.class Keypad14 $ thehandler3.class Keypad14 $ thehandler4.class Keypad14.class ReKeypad.class ReKeypad $ 1.class ReKeypad $ 2.Klasse ReKeypad $ thehandler.class ReKeypad $ thehandler2.class ReKeypad $ thehandler3.class ReKeypad $ thehandler4.class time.class time2.class trail2 $ 1.class trail2 $ 2.Klasse trail2.class UO 1 $. Klasse UO $ 2. Klasse UO $ thehandler.class UO $ thehandler2.class UO $ thehandler 3. Klasse UO.class

Jetzt möchte ich eine JNLP-Datei erstellen. Ich folge diesem http://download.oracle.com/javase/tutorial/deployment/webstart/deploying.html

Ich bin etwas verloren auf dem JNLP Teil. Wie erstelle ich es? Und was bedeutet es? Gibt es Nachhilfevideos, die zum Beispiel ein einfaches Hello World-Programm erstellen -> JAR-Datei -> JNLP-Datei -> HTML-Stufe -> Java-Webanwendung.

+2

Beachten Sie, dass eine WebStart-Anwendung und eine Webanwendung zwei sehr unterschiedliche Anwendungstypen sind. Eine WebStart-App wird über das Internet gestartet, läuft dann aber auf dem Computer des Benutzers. Eine Web-App wird in einem Servlet-Container auf einem Webserver ausgeführt. – Powerlord

+0

Oh ok. Webstart-Anwendung ist die, die ich interessiere – razshan

Antwort

1

Und eine Minute dauern, Ihre Klassen in Glas verpacken. Es ist viel bequemer!

+0

Yeah eine .jar-Datei wird Ihr Leben leichter machen – tegbains

+1

ja alle Klassen sind in diesem Jar-Datei: tbi.jar – razshan

4

Eine kurze Beschreibung:

Java Web Start is a mechanism for program delivery through a standard Web server. Typically initiated through the browser, these programs are deployed to the client and executed outside the scope of the browser. Once deployed, the programs do not need to be downloaded again, and they can automatically download updates on startup without requiring the user to go through the whole installation process again

Blick auf this. Dies beinhaltet die einfachsten und einfachsten Schritte zum Erstellen einer jnlp-Datei.

Verwandte Themen