Reading Files Within a Jar(ZipInputStream, etc.) [duplicate]
问题 This question already has answers here : How do I read a resource file from a Java jar file? (9 answers) Closed 6 years ago . I'm writing a game in java and all is working more or less well, as you would expect when coding, but one issue I have come across is reading the image and sound files into the game. I wrote a method that works really well within Eclipse, but as soon as I try to test it in a runnable jar (exported using Eclipse) my game gets stuck on the loading screen because it can't