final String javaBinDir = System.getProperty("java.home")
+ File.separator + "bin" + File.separator;
String javaBin = null;
- if (javaBin == null && checkJVMSymlink(javaBinDir + appName))
+ for (String name : new String[] { appName, "Jalview", "java",
+ "java.exe" })
{
- javaBin = javaBinDir + appName;
- }
- if (javaBin == null && checkJVMSymlink(javaBinDir + "Jalview"))
- {
- javaBin = javaBinDir + "Jalview";
+ if (checkJVMSymlink(javaBinDir + name))
+ {
+ javaBin = javaBinDir + name;
+ break;
+ }
}
if (javaBin == null)
{