archive « jar « Java I/O Q&A





1. How can my Java program store files inside of its .jar file?    stackoverflow.com

I know that .jar files are basically archives as well as being applications. What I'm asking is how can I store data(actual files not just strings) packed inside my program? I ...

2. Accesing a file in the Jar archive    forums.oracle.com

Thanks I have solved my problem with your help, now I find the file. I am writing the class so I can change the constructor according to my needs. I have choosen the FileReader because it is very simple to read a text file line by line. Using the InputStream is a bit more difficult, do you know a way to ...

3. Passing a variable to a java file contained in the jar archive?    forums.oracle.com

paulcw wrote: Just define a method on ClassA that takes an argument. ClassB calls that method. If it's going to be an applet, these should probably be non-static methods. The fact that they're in different jars isn't relevant. When I define a method that accepts an argument it stops working. I can do this if I use a "static main" class, ...

4. Can I refer to a file insider a .JAR archive with an instance of File?    forums.oracle.com

Hi, I was wondering if it is possible to refer to a file stored inside a .JAR file just as if it was on a regular folder by using an instance of the java.io.File class. Otherwise, how can one do that? Essencially what I need is to check if a particular class file is contained inside a .JAR archive. Best regards, ...

5. How to play wave files from a jar archive?    forums.oracle.com