Reputation: 4192
I have a JAR file which may be called manually or by Java Web Start / a JNLP file. Is there a possibility to check in the main method, how the JAR has been called?
Upvotes: 1
Views: 293
Reputation: 168825
I can think of two ways. The app. was launched directly via. Jar. if:
main()
. It will be null
.Upvotes: 1