I'm new to programming in Java and I noticed a lot of class files being created as I program. Is there a way to archive or compress the class files and still be able to run the program I've written?
You could place all of the class files into a jar and run them from there. The classes in the jar may be compressed or uncompressed, it is your choice.
<sarcasm>
Yes, really. I also prefer to keep my jars on the top shelf because I think they perform better due to the higher altitude.
</sarcasm>
On another note, I feel sarcasm should official be supported in html as a markup tag. It would lead to less confusion in places like this.
I tried placing them into a .jar before. I placed all the class files in their own directory and made them into a .jar file. However when I tried to run the program it didn't work right. Was there something I did wrong?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.