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

Popular posts from this blog

gspread error:gspread.exceptions.SpreadsheetNotFound

Miniconda installation problem: concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

P and q values in RNA Seq