* Make sure we use the absolute path in getInstallDir()

* Fixing indentation in getInstallDir()
* Print stack trace on bootstrap error
This commit is contained in:
hns 2005-02-03 17:56:58 +00:00
parent 3933fbf91b
commit c93316078c

View file

@ -67,7 +67,7 @@ public class Main {
} catch (Exception x) {
// unable to get Helma installation dir from launcher jar
System.err.println("Unable to get Helma installation directory: ");
System.err.println(x.getMessage());
x.printStackTrace();
System.exit(2);
}
}
@ -191,11 +191,9 @@ public class Main {
jarUrl = jarUrl.substring(0, excl);
launcherUrl = new URL(jarUrl);
File f = new File(launcherUrl.getPath());
File f = new File(launcherUrl.getPath()).getAbsoluteFile();
installDir = f.getParentFile().getCanonicalPath();
}
// set System property
System.setProperty("helma.home", installDir);