JAVA: How to pro-grammatically determine operating system?
You can use:
System.getProperty("os.name")
Here is an example:
class ShowProperties {
public static void main(String[] args) {
System.getProperties().list(System.out);
}
}
Comments
Post a Comment