2010-11-23 3 views
5

J'ai un programme Java que je veux finalement déployer sur le web.Comment créer un fichier JNLP pour une application web java?

J'ai commencé la création d'un fichier jar de tas de classes:

pot

cfe tbi.jar trail1modified trail1modified.class InitialKeypad.class InitialKeypad $ 1.class InitialKeypad $ 2.class InitialKeypad $ thehandler .class InitialKeypad $ thehandler2.class InitialKeypad $ thehandler3.class InitialKeypad $ thehandler4.class Keypad5 $ 1.class Keypad5 $ thehandler.class clavier 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. classe 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 Clavier9 $ thehandler2.class Clavier9 $ 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. classe Clavier13 $ 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.class ReKeypad $ thehandler.class ReKeypad $ thehandler2.class ReKeypad $ thehandler3.class ReKeypad $ thehandler4.class time.class time2.class trail2 $ 1.class trail2 $ 2.class trail2.class $ 1 UO. classe UO $ 2.classe UO $ thehandler.class UO $ thehandler2.class UO $ le chariot 3.class UO.class

Maintenant, je souhaite créer un fichier JNLP. Je suis ce http://download.oracle.com/javase/tutorial/deployment/webstart/deploying.html

Je suis un peu perdu sur la partie JNLP. Comment puis-je le créer? Et qu'est-ce que cela signifie? Existe-t-il des vidéos de tutorat sur (par exemple) la création d'un simple programme Hello World -> fichier jar -> fichier JNLP -> étape HTML -> application web java.

+2

Notez qu'une application WebStart et une application Web sont deux types d'applications très différents. Une application WebStart est lancée à partir du Web, mais s'exécute sur la machine de l'utilisateur. Une application Web s'exécute dans un conteneur Servlet sur un serveur Web. – Powerlord

+0

Oh ok. L'application Webstart est celle qui m'intéresse – razshan

Répondre

1

Et prenez une minute, faites vos classes en pot. C'est beaucoup plus pratique!

+0

Ouais un fichier .jar va vous faciliter la vie – tegbains

+1

oui toutes les classes sont dans ce fichier jar: tbi.jar – razshan

4

Une brève description:

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

Regardez this. Cela inclut les étapes les plus simples et les plus complètes pour créer un fichier jnlp.

Questions connexes