Saturday, October 31, 2009

NetBeans Platform: JNLP & static codebase

Recently the question was asked on the mailing list, how to deploy a JNLP NetBeans Platform application to a web server, which doesn't support WAR-files.
I had the same problem when I wanted to deploy the sample application of my last NetBeans Platform post (NetBeans Platform meets Swing Application Framework: SessionStorage), which is a JNLP NetBeans Platform application, too, that I host along with its source at

Here are the build.xml and I used:
The Ant script will create the file "${nbdist.dir}/${}-updated.war". Just copy it to your web server and unzip it there. Then link to the master.jnlp to provide a starting-point to your application, eg. by creating a web start launch button.

Here is the complete code:

You can run this sample here:
or here:
(at the bottom of the page)


  1. THANK YOU!! After a day of trying to find a solution (and not beeing an Ant-expert myself) your files above saved my day!

  2. This is my first time i visit here. I discovered so numerous interesting stuff in your weblog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all of the enjoyment here! maintain up the great work.

  3. Thanks for sharing your post and it was superb .I would like to hear more from you in future too.

  4. I gave up long ago to find a solution on this. Thanks for clearing it up. Finally

  5. gr8 stuff and thanks for sharing ur knowledge

  6. This is a good posting, I was wondering if I could use this write-up on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away