Java - copy Jar Folder
Posted
by Ripei
on Stack Overflow
See other posts from Stack Overflow
or by Ripei
Published on 2010-04-19T18:59:17Z
Indexed on
2010/04/19
19:03 UTC
Read the original article
Hit count: 404
Hey Java - Developers
Actually I am confronted with a Problem. I've got a ".apk-File" in one Package of my Application. apk is a kind of a jar File (apk = Android Package). I now want to copy this jar-file out of my Programm onto any other Location at the PC. Normally I would do this by using:
FileInputStream is = new FileInputStream(this.getClass().getResource("/resources/myApp.apk").getFile());
And then write it on the disk with using a FileOutputStream. ... but since an .apk is a kind of a .jar it doesn't work. It just copies the .apk file. but without the containing other files.
any help would be appreciated
© Stack Overflow or respective owner