I have to copy classpath resource from one package to another.
My program is:
public static void main(String[] args) throws IOException, URISynta
I have the same problem which I was facing from the past two days and finally, I got it Space causes such problem try to solve
var fileName=YourFileName.trim(); Path filePath = Paths.get(dirPathStr, fileName);