bug fixes for issue #49

Former-commit-id: 967dc082c8a38a786d97c584d1d76c83c66f58b2
This commit is contained in:
Jeremy Long
2014-01-23 21:25:59 -05:00
parent 5c781987a3
commit b1a5af187c
2 changed files with 2 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ public final class DriverLoader {
* @throws DriverLoadException thrown if the driver cannot be loaded
*/
public static void load(String className) throws DriverLoadException {
final ClassLoader loader = ClassLoader.getSystemClassLoader();
final ClassLoader loader = DriverLoader.class.getClassLoader(); //ClassLoader.getSystemClassLoader();
load(className, loader);
}

View File

@@ -284,8 +284,7 @@ public final class Settings {
Logger.getLogger(Settings.class.getName()).log(Level.FINE, "Settings.getDataFile() - transforming filename");
final File jarPath = getJarPath();
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - jar file: '%s'", jarPath.toString()));
final File newBase = new File(jarPath, file.substring(6));
File retVal = new File(newBase, file);
final File retVal = new File(jarPath, file.substring(6));
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - returning: '%s'", retVal.toString()));
return retVal;
}