private static boolean isOlderThanLeopard(){
  String version=System.getProperty("os.version");
  StringTokenizer tk=new StringTokenizer(version,".");
  int major=Integer.parseInt(tk.nextToken());
  int minor=Integer.parseInt(tk.nextToken());
  return major == 10 && minor < 6;
}

private static boolean isOlderThanLeopard ( ) { String version = System . getProperty ( "os.version" ) ; StringTokenizer tk = new StringTokenizer ( version , "." ) ; int major = Integer . parseInt ( tk . nextToken ( ) ) ; int minor = Integer . parseInt ( tk . nextToken ( ) ) ; return major == 10 && minor < 6 ; }
determines if this is running a mac osx lower than leopard
