Hi i am creating a application in which i m putting files in com.cmp.app.resource package. all files are doc or excel. I want to access that files using File class. how to use that
Originally posted by Prashant Saraf: no.. problem is that i want to use a File object to access files from my jar. class and doc files are on same jar.
You can not use java.io.File to access those files. You have to use ZippedInputStream if you want to read a zip/jar/file and its entries.