Running on linux. The file name is not escaped thus not being able to resolve the file. fileName should be fileName = path + "\"" + tableName + "\"" + connection.getExtension()