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()); }
2.1m questions
2.1m answers
60 comments
57.0k users