/**
* 获得当前操作系统类型
*
* @return 操作系统类型
*/
public static int getOSType()
{
String systemType = System.getProperty("os.name");
int osType = HW_ATAE_SUSE_LINUX_9;
if (systemType.contains("Linux") || systemType.contains("linux"))
{
osType = HW_ATAE_SUSE_LINUX_9;
}
else if (systemType.contains("Windows")
|| systemType.contains("windows"))
{
osType = WINDOWS;
}
else if (systemType.contains("AIX") || systemType.contains("aix"))
{
osType = IBM_AIX_5;
}
else if (systemType.contains("HP-UX") || systemType.contains("hp-ux"))
{
osType = HP_IA64_UX_11;
}
return osType;
}
* 获得当前操作系统类型
*
* @return 操作系统类型
*/
public static int getOSType()
{
String systemType = System.getProperty("os.name");
int osType = HW_ATAE_SUSE_LINUX_9;
if (systemType.contains("Linux") || systemType.contains("linux"))
{
osType = HW_ATAE_SUSE_LINUX_9;
}
else if (systemType.contains("Windows")
|| systemType.contains("windows"))
{
osType = WINDOWS;
}
else if (systemType.contains("AIX") || systemType.contains("aix"))
{
osType = IBM_AIX_5;
}
else if (systemType.contains("HP-UX") || systemType.contains("hp-ux"))
{
osType = HP_IA64_UX_11;
}
return osType;
}