protected static void determinePlatformHook() {
String os = System.getProperty("os.name");
if (os == null) {
System.err
.println("Your operating system has no name, so I'm guessing its some kind of *nix.");
platform = new PlatformHookUnixoid();
} else if (os.toLowerCase().startsWith("windows")) {
platform = new PlatformHookWindows();
} else if (os.equals("Linux") || os.equals("Solaris")
|| os.equals("SunOS") || os.equals("AIX")
|| os.equals("FreeBSD") || os.equals("NetBSD")
|| os.equals("OpenBSD")) {
platform = new PlatformHookUnixoid();
} else if (os.toLowerCase().startsWith("mac os x")) {
platform = new PlatformHookOsx();
} else {
System.err.println("I don't know your operating system '" + os
+ "', so I'm guessing its some kind of *nix.");
platform = new PlatformHookUnixoid();
}
}