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

    Copy files from inside jar file to hard drive?

      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?