如何为 Java Web 应用程序创建 JNLP 文件?

发布于 2024-10-04 01:22:59 字数 2176 浏览 5 评论 0原文

我有一个 java 程序,我最终想将其部署在网络上。

我开始从一堆类创建一个 jar 文件:

jar cfe tbi.jar Trail1modified Trail1modified.class 初始键盘.类 初始键盘$1.class 初始键盘$2.class 初始键盘$thehandler.class 初始键盘$thehandler2.class 初始键盘$thehandler3.class 初始键盘$thehandler4.class 键盘5$1.class Keypad5$thehandler.class Keypad5$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.class 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 键盘10$thehandler3.class 键盘10.class 键盘11$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 键盘12.class 键盘13$1.class Keypad13$thehandler.class Keypad13$thehandler2.class Keypad13$thehandler3.class Keypad13$thehandler4.class 键盘13.class 键盘14$1.class Keypad14$thehandler.class Keypad14$thehandler2.class 小键盘14$thehandler3.class 小键盘14$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 UO$1.class UO$2.class UO$thehandler.class UO$thehandler2.class UO$thehandler3.class UO.class

现在我希望创建一个 JNLP 文件。我正在关注这个 http://download.oracle.com/javase/tutorial/deployment/webstart/ deploying.html

我对 JNLP 部分有点迷失。我该如何创建它?它意味着什么?是否有任何有关(例如)创建简单的 Hello World 程序的辅导视频 --> jar 文件 --> JNLP 文件 --> HTML 阶段 --> java网络应用程序。

I have a java program that I ultimately want to deploy it on the web.

I started off creating a jar file from bunch of classes:

jar 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
Keypad5$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.class
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.class
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.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 UO$1.class
UO$2.class UO$thehandler.class
UO$thehandler2.class
UO$thehandler3.class UO.class

Now I wish to create a JNLP file. I am following this http://download.oracle.com/javase/tutorial/deployment/webstart/deploying.html

I am bit lost on the JNLP part. How do I create it? And what does it signifies? Are there any tutoring videos on (for example) creating a simple Hello World program --> jar file --> JNLP file --> HTML stage --> java web application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

独自←快乐 2024-10-11 01:22:59

简要说明:

Java Web Start 是一种通过标准 Web 服务器交付程序的机制。通常通过浏览器启动,这些程序被部署到客户端并在浏览器范围之外执行。部署后,程序无需再次下载,并且可以在启动时自动下载更新,而无需用户再次完成整个安装过程

mkyong.com/java/java-web-start-jnlp-tutorial-unofficial-guide/" rel="noreferrer">这个。这包括创建 jnlp 文件的最简单和最简单的步骤。

A brief 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

Look at this. This includes the simplest and comapct steps to create a jnlp file.

-小熊_ 2024-10-11 01:22:59

看看这里,仍然来自Oracle,但绝对更好!

有关 JNLP 语法的特定主题: http:// /download.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html#example

Take a look here, still from Oracle, but definitely better!

Specific topic about JNLP syntax: http://download.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html#example

纵情客 2024-10-11 01:22:59

花一点时间,将您的课程打包到 jar 中。方便多了!

And take a minute, pack your classes into jar. It is much more convenient!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文