7 Replies Latest reply: Nov 14, 2008 1:08 PM by 807589 RSS

    Copy files from inside jar file to hard drive?

    807589
      Hi All,
      In a Java application I'm developing, I need to be able to copy two files from within my compiled JAR into a sub-folder of the user's home folder(The first time the application is run). Creating the sub-folder is fine, but I can't seem to figure out how to copy the files there. In Netbeans, I have them in a /res folder, and they are going into the JAR, but I'm getting a file not found exception when I try to copy from the /res folder....so I guess its actually looking on the users hard drive /res folder eh?

      So, is it possible?