*/
package jalview.bin;
+import java.util.Locale;
+
import java.io.File;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.util.List;
import jalview.util.ChannelProperties;
+import jalview.util.LaunchUtils;
/**
* A Launcher class for Jalview. This class is used to launch Jalview from the
}
// use saved preferences if no cmdline args
- boolean useCustomisedSettings = Boolean.parseBoolean(LaunchUtils
- .getUserPreference(MemorySetting.CUSTOMISED_SETTINGS));
+ boolean useCustomisedSettings = LaunchUtils
+ .getBooleanUserPreference(MemorySetting.CUSTOMISED_SETTINGS);
if (useCustomisedSettings)
{
if (jvmmempc == null)
process.waitFor();
} catch (IOException e)
{
- if (e.getMessage().toLowerCase().contains("memory"))
+ if (e.getMessage().toLowerCase(Locale.ROOT).contains("memory"))
{
System.out.println("Caught a memory exception: " + e.getMessage());
// Probably the "Cannot allocate memory" error, try without the memory