Packaging problem

Hi all,

And using Esclipse and FatJar and I got a "big" jar file to run but the problem is

In my code i use an external image file for the config dialog

myApp.setDialogBehaviour(2, MySimpleGame.class.getClassLoader().getResource("Data/Texture/image.png"));



Whenever I run the jar file it wont find the image file. The question is where should i put the image file so that jar file can read it?

There certainly is an option for FatJar to include some additional files. Try to find such an option and specify your Data folder to be included.

irrisor said:

There certainly is an option for FatJar to include some additional files. Try to find such an option and specify your Data folder to be included.


Yes it works like a charm. Thanks alot  ;)

can you tell me where exactly this option is?

SCM said:

can you tell me where exactly this option is?


When you start FatJar you will see a number of selectable projects/directories that can be included in the jar. You should be able to select/deselect other directories from there.