Source Code : OS detector
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
OS detector
import java.util.logging.Logger;
public final class OSUtils {
public static final boolean isLinux() {
return System.getProperty("os.name").equals("Linux");
}
public static final boolean isMacOSX() {
return System.getProperty("os.name").equals("Mac OS X");
}
public static final boolean isWindows() {
return System.getProperty("os.name").startsWith("Windows");
}
public static final boolean isSolaris() {
return System.getProperty("os.name").equals("SunOS");
}
}
Thank with us