java - Copy file from user to inside a jar using Files.copy -
so use copy image user images folder in project:
files.copy(file.topath(), paths.get("/images/"+file.getname()), replace_existing); it works fine within project when build program doesn't work jar file. i'm not sure if possible copy file inside jar directory.
file structure so
-images something.jpg -stock *.java
Comments
Post a Comment