Reffering a configuration option inside a Java application



I would like to know during the runtime of a Java application what configuration options are set in the launcher.

For example, if I set the Automatic IP configuration (DHCP) checkbox in “Network -> Network Settings”, how can I check this setting from a Java application?


Hi Valentin,

There is no standard way to get back launch properties from the Java application. It is also not a very good practice to base your execution on them (e.g. assuming the number of threads or size of memory).

However for the useful information, there is almost always a corresponding API. For the one you mentioned in your post it would be the class [1] in the net library [2].

Hope it’ll help.



Hi Gaëtan,

Thanks for the quick support.
I will have a look in the references you provided.