1

I've generated a jnlp file with Netbeans. By double clicking it, I get the following error dialog:

enter image description here

Double clicking the jar works, so no problem there but when double clicking the jnlp file, the antecedent error appears.

The launch.jnlp file looks this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="launch.jnlp" spec="1.0+">
    <information>
        <title>...</title>
        <vendor>....</vendor>
        <homepage href=""/>
        <description>...</description>
        <description kind="short">....</description>
        <icon href="icon.png" kind="default"/>
        <offline-allowed/>
    </information>
    <update check="background"/>
    <resources>
        <j2se version="1.6+"/>
        <jar href="File.jar" main="true"/>
        <jar href="lib/itextpdf-5.3.3.jar"/>
    </resources>
    <application-desc main-class="right.path.to.my.main.class.here">
    </application-desc>
</jnlp>

I put the File.jar in the same directory as the jnlp file (all the others are there too).

5
  • you also have an <icon href="..."> is that icon also in the same path? Commented Oct 16, 2012 at 17:29
  • Yes, the icon is there. Clarified the message. Commented Oct 16, 2012 at 17:29
  • 3
    Did you click on the Details button on the error message dialog? What did it say? Commented Oct 16, 2012 at 18:16
  • Thanks! I signed the application with Netbeans and added security element in the jnlp file and it worked! Commented Oct 16, 2012 at 19:34
  • 1
    You can answer your own question. Commented Oct 17, 2012 at 4:25

1 Answer 1

2

I added codebase attribute to jnlp element, added

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

and signed the application (right click on the project in Netbeans, select Properties and Application -> Web start and sign it there) and now it works.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.