Ascendise
Ascendise

Reputation: 221

Can't include my folders in the executable .jar file

I have some folders, where I have the soundtracks, images... I need for my game. Now, when I try to make an executable .jar File, Eclipse doesn't include these folders.

What can I do?Here is a pic of the folders, if it helps :)

Upvotes: 0

Views: 330

Answers (2)

Juan Ramos
Juan Ramos

Reputation: 577

Try to include your resources folder in the src/main folder.

Upvotes: 1

RoninDev
RoninDev

Reputation: 5686

If you want to include these files as your resources, you need to add them to the src/main/resources directory.

This article may help https://www.codexpedia.com/java/java-packaging-resource-files-into-a-runnable-jar-file/

Upvotes: 2

Related Questions