public void init() throws Exception { in = new SmbFileInputStream(smbFile); try { File configFile = new File("config.properties"); InputStream input = new BufferedInputStream(new FileInputStream(configFile.getAbsoluteFile())); Properties configProperties = new Properties(); configProperties.load(input); downloadDir = configProperties.getProperty("downloadDir", "."); } catch (Exception e) { System.out.println(e.toString()); System.out.println("Error: " + e.getMessage()); } }