Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate java JNLP files?

I have a java application that reads a resource folder containing a bunch of .jar files. For some of these .jar files corresponding JNLP files must be created based on default schema and stored in the same directory.

Are there good approach to create these JNLP file from a java application (and maybe add some data from the .jar files into jnlp nodes) ?

like image 451
u123 Avatar asked Nov 06 '22 08:11

u123


2 Answers

It's basically an XML file. Any XML API could do it. Personnaly, I would go with the JAXB API if I had to create a JNLP file dynamically.

like image 69
Nik Avatar answered Nov 09 '22 04:11

Nik


A good approach may be to start from the existing Ant-JNLP-War task. Either script Ant to do what you want, or make use of the code directly.

like image 38
Brian Agnew Avatar answered Nov 09 '22 02:11

Brian Agnew