1

I am having a jnlp file and a web application.My swing application file make use of a xml file in it.Now the problem is where to define that xml file inside jnlp code ? and also where to keep it in my project directory of web application in which am using that jnlp file of swing application.Please help.

I am trying to get over it since one day,But didnt know how to do it.

user3522121
  • 215
  • 3
  • 10
  • 23

1 Answers1

1

You can eithere define its jar as a non-lazy download with no part, or make it available as a web resource alongside your jars.

In the JNLP

Say you have an XML file app.xml, and you added it to the jar metadata.jar. Assuming this jar is available at example.com/metadata.jar, you can add this to your JNLP:

<jar href="http://example.com/metadata.jar" download="eager" />

This will download the metadata jar before your application even starts.

As a Web Resource

You can download the XML file directly from your application if you host the XML file on your web server. Once it's hosted, you can then download it as shown in this question.

Community
  • 1
  • 1
Brian
  • 17,079
  • 6
  • 43
  • 66