简体   繁体   English

使用Java Web Start

[英]Using Java Web Start

So I have a jar file created by Netbeans. 因此,我有一个由Netbeans创建的jar文件。

I would like to deploy it as a web start application but don't know how to procede. 我想将其部署为Web启动应用程序,但不知道如何进行。

If it's a application project in NetBeans, you can right-click on the project and choose "Build JNLP", and then you get a war-file you can deploy in an application server. 如果它是NetBeans中的一个应用程序项目,则可以右键单击该项目并选择“ Build JNLP”,然后获得可以在应用程序服务器中部署的war文件。

If not, you can create your own JNLP-file: 如果没有,则可以创建自己的JNLP文件:

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://something.com/foobar" href="foobar.jnlp">

<information>
    <title>Foo Bar</title>
    <description>hello</description>
</information>

<security>
    <all-permissions/>
</security>

<resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
    <jar href="foobar.jar" />
</resources>

<application-desc main-class="foo.bar.MainClass" />

and deploy the JNLP and the (signed) jar-file. 并部署JNLP和(签名的)jar文件。

Java Web Start开发人员指南应该可以帮助您入门。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM