* file.
*/
public static String getServerHome() throws ServerConfigurationException {
String jitterbitHome = getServerHomeImpl();
if (jitterbitHome == null || jitterbitHome.length() == 0) {
throw new ServerConfigurationException("The environment variable " + JITTERBIT_HOME + " has not been set.");
}
File dir = new File(jitterbitHome);
if (!dir.exists()) {
throw new ServerConfigurationException("The jitterbit home directory does not exist. " + JITTERBIT_HOME
+ "=\"" + jitterbitHome + "\".");
}
if (!dir.isDirectory()) {
throw new ServerConfigurationException(JITTERBIT_HOME + " is not set to a directory. " + JITTERBIT_HOME
+ "=\"" + jitterbitHome + "\".");
}
return dir.getAbsolutePath();
}