FAQ Database Discussion Community


Package Java 1.7+ Only Classes with JAR 1.6

java,eclipse,jar,copy,compliance
I have an issue where I want to copy Files from one directory to another directory. Path source = Paths.get(files[i].getPath()); Path target = Paths.get(dir.getName() + "/" + files[i].getName()); try { Files.copy(source, target, StandardCopyOption.REPLACE_EXISTING); files[i] = target.toFile(); } catch (IOException e) { throw new IOException("\t\tUnable to move " + files[i].getName(), e);...