I am looking some way to configure my Ethernet card from Java. Is there any way to change Default Gateway,IP address and subnet mask from Java.
Currently I am using OSHIto get the ip address,Mac address and other Hardware info. I also understand that the only way to set these parameters is Java.lang.Runtime Class and using Hardware specific command to set properties from here
I am looking for a cleaner way to do this for Linux, Windows and Mac. I am basically trying to set all this properties from my own application. Is there a library or wrapper like OSHI to do execute host specific command?