User Tools

Site Tools


tips:java:osname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips:java:osname [2009/06/08 11:47] (current)
erik created
Line 1: Line 1:
 +====== Determining OS Name ====== 
 +<code java> 
 +if (System.getProperty("​os.name"​).startsWith("​Mac"​)) 
 +
 +    // do something mac specific 
 +    System.out.println("​hello!"​);​ 
 +
 +</​code>​
tips/java/osname.txt · Last modified: 2009/06/08 11:47 by erik