try {
// Begin new code
URL codeSource =
getClass().getProtectionDomain().getCodeSource().getLocation();
File f = new File(codeSource.toURI());
while (!f.isDirectory()) {
f = f.getParentFile();
if (f == null) {
throw new IOException("Cannot find location for ARFFFiles");
}
}
String path = f.getAbsolutePath();
// End new code
// String path = (getClass().getProtectionDomain().getCodeSource()
// .getLocation().getPath() + folder).replace("%20", " ");
// End old code
preCheckBetFile = new ARFFFile(path, player, "PreCheckBet.arff",
ARFFPropositionalizer.getPreCheckBetInstance().toString(), config);