* Make sure we use the absolute path in getInstallDir()
* Fixing indentation in getInstallDir() * Print stack trace on bootstrap error
This commit is contained in:
parent
3933fbf91b
commit
c93316078c
1 changed files with 15 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue