User Tools

Site Tools


tips:java:osname

Determining OS Name

if (System.getProperty("os.name").startsWith("Mac"))
{
    // do something mac specific
    System.out.println("hello!");
}
tips/java/osname.txt · Last modified: 2009/06/08 04:47 by erik