User Tools

Site Tools


tips:java:osname
no way to compare when less than two revisions

Differences

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


tips:java:osname [2009/06/08 11:47] (current) – created erik
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