How to shut down a Computer from a Java application
A developer may need to shut down a computer from a Java application. This post explains how it can be done. Ways to identify operating system In all solutions proposed here we are calling the OS directly to shutdown…