1

So I have a jar file created by Netbeans.

I would like to deploy it as a web start application but don't know how to procede.

asked Sep 16, 2010 at 16:46

4 Answers 4

4

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.

If not, you can create your own JNLP-file:

<?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.

answered Sep 16, 2010 at 16:51
Sign up to request clarification or add additional context in comments.

3 Comments

<3 Netbeasns why would you use anything else
after right clicking on the project in Netbeans IDE I can't find any "Build JNLP". Please clarify
It has to be a NetBeans Module application, ie if you choose File->New Project->NetBeans Modules->(Module Suite or NetBeans Platform Application), then you can right-click and choose "Build JNLP Application".
2
shanethehat
15.6k11 gold badges59 silver badges87 bronze badges
answered Sep 16, 2010 at 16:55

Comments

1

Java Web Start Developer Guide should get you started.

answered Sep 16, 2010 at 16:56

Comments

0

Follow this step by step instructions to distribute your application vis Java Web Start: Distribute your Swing application via Java Web Start

answered Sep 21, 2011 at 11:32

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.