config.getString("product.name"),
config.getString("product.version"));
}
catch(MissingResourceException e)
{
throw new JixException(e);
}
String osName = null;
String osLongNames = null;
int osCode = OS_UNKNOWN;
String environmentPlatformsValue = config.getString("environment.platforms");
if (environmentPlatformsValue != null)
{
StringTokenizer st1 = new StringTokenizer(environmentPlatformsValue, ":");
while (st1.hasMoreTokens())
{
osName = st1.nextToken();
if (osLongNames == null)
osLongNames = config.getString("environment.platforms." + osName);
else if (st1.hasMoreTokens())
osLongNames += translator.getString("bad_os.message.separator") + " " + config.getString("environment.platforms." + osName);
else
osLongNames += " " + translator.getString("bad_os.message.lastseparator") + " " + config.getString("environment.platforms." + osName);
osCode = getOperatingSystemCode(osName);
if (CURRENT_OS == osCode)
break;
}
}
if (CURRENT_OS == OS_UNKNOWN || CURRENT_OS != osCode)
{
if (JOptionPane.showConfirmDialog(null,
translator.getString("bad_os.message", new String[] { CURRENT_OS_NAME, osLongNames, }),
translator.getString("bad_os.title"),
JOptionPane.WARNING_MESSAGE) != JOptionPane.OK_OPTION)
{
throw new JixException(new Exception("Bad OS"));
}
}
JDialog waitingDialog = newWaitingDialog();
waitingDialog.setVisible(true);