Class LaunchExternalProgramUtil

java.lang.Object
  extended byLaunchExternalProgramUtil

public class LaunchExternalProgramUtil
extends java.lang.Object

Utility class to launch external program on supported platform.

Author:
Lulin Song

Constructor Summary
LaunchExternalProgramUtil()
           
 
Method Summary
static boolean isSupportedPlatform()
          Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property.
static boolean launchProgram(java.lang.String progDir, java.lang.String programName)
          Launch an external program on supported platform.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaunchExternalProgramUtil

public LaunchExternalProgramUtil()
Method Detail

launchProgram

public static boolean launchProgram(java.lang.String progDir,
                                    java.lang.String programName)
Launch an external program on supported platform.

Parameters:
progDir - external program location.
programName - external program name

isSupportedPlatform

public static boolean isSupportedPlatform()
Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property.

Returns:
true if this application is running under Windows, Linux or Mac OS X.