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 java.net.NetworkInterface [1] in the net library [2].
Hope it’ll help.
Gaëtan
[1] https://developer.microej.com/javadoc/microej_4.1/foundation/java/net/NetworkInterface.html
[2] https://developer.microej.com/4.1/ivy/artifacts/ej/api/net/1.1.0/
1 Like
Hi Gaëtan,
Thanks for the quick support.
I will have a look in the references you provided.
Valentin