Nathan
Nathan

Reputation: 266

How do I check which JNLP file that has been selected to run?

I deploy an app through Java Web Start. What I want to know is can it be possible to locate the JNLP file that the application was launched from ?

I want to try and use specific configurations for different environments, and although they may use the same application, I want to distinguish specific settings for what JNLP file has been used.

I've looked online for a while now with no luck, and I'm beginning to think if it is even possible.

If anyone has had this issue or has any tutorials/similar discussions, please comment with the link.

Upvotes: 1

Views: 126

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168825

How do I check which JNLP file that has been selected to run ?

Put a unique property in the resources section of each JNLP file.

<property name="jnlp.id" value="some-value"/>

Upvotes: 1

Related Questions