Change Computer IP address using JAVA

In this video I have shown how you can change IP address using java project.
I have shown this using Eclipse IDE.

1. Project Structure in Eclipse IDE is shown below. Create a Java Project.

2. The first java class is It will internally execute the commands as shown in the video.
Please set your adapter name, ip address, subnet mask, default gateway, dns 1 and dns 2 in the code.

3. will call internally to show the output in console.

4. After executing the in Administrator mode. The IP address would be changed as below shown.