java - Detecting Windows or Linux?
I am seeking to run a common Java program in both Windows and Linux.

apache commons lang has a class SystemUtils.java
you can use :
SystemUtils.IS_OS_LINUX
SystemUtils.IS_OS_WINDOWS

