I've been working on a little program recently (details aren't exactly very important at the moment), and I essentially copy a DLL file to a certain location.
I finished up the program, and it worked pretty much perfectly. Recently, I wanted to make it more compact so it could be a standalone jar without requiring a folder with assets (i.e the image background, icon, DLL, etc.).
I figured out that I could get the image as a resource from the actual jar file/class - that eliminates the need for the image assets in a separate folder.
Next, I wanted to store the DLL within the jar file so I could copy it to another location. I've tried everything, honestly. I just can't figure out how I would go about copying the DLL file from within the actual jar file to an external location.
Any help is welcome. I'll try everything.
Thanks to whomever answers!