Eclipse exported Runnable JAR not showing images

后端 未结 8 1769
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 16:46

My images will not load when running a JAR file exported from Eclipse.

I have the images in a resources class package. I\'ve tried a images source folder as well wit

8条回答
  •  青春惊慌失措
    2020-11-22 17:19

    Another work around is if you put your resource file, an your .jar file in the same location, it should work. The only drawback is you have to have the resources with the jar file at all times.

    If that's not an issue you can do it this way.

提交回复
热议问题