Are there any built-in methods I can use to allow users to extract a file from the currently running JAR and save it on their disk?
Thanks in advance.
File file = new File("newname.ext"); if (!file.exists()) { InputStream link = (getClass().getResourceAsStream("/path/resources/filename.ext")); Files.copy(link, file.getAbsoluteFile().toPath()); }
1.4m articles
1.4m replys
5 comments
57.0k users