Search code examples
javaantdirectory-structure

Where should I store my images?


I'm developing a Java application, and I don't know where is the best place to store the images in the project folder. Should I make a resources folder at the root, or inside the src folder. Or somewhere else ?

Where should it be so it won't make my Ant builds crash ?

Thanks.

PS : I didn't know if I should post here or on meta. I did it here, but if that's not appropriate, just tell me, i'll know for the next one.


Solution

  • I'd go with project/resources. I.e., have a structure that looks like

    + project
    +--- src/        (your source code)
    +--- lib/        (your libraries)
    +--- bin/        (compiled classes)
    +--- resources/  (images etc)
    +--- build.xml
    

    Here's a related question: