the process cannot access the file because it is being used by another process java
I use this code to transfer a file to an other
Files.move(Paths.get(file_picker1.getText()), Paths.get("random location\\.png"));
I understand that I have to close it. but Im not finidng how to do that. search in google but no result about this yet.