This discussion is archived
4 Replies Latest reply: Dec 22, 2012 3:59 AM by Kayaman RSS

How to menage file and folder

piratolo Newbie
Currently Being Moderated
Hi,
i'm having problem understanding how to menage file (images, *.wav, etc.) when creating a Jar file.

At first i couldn't make my class reach those files, but eventually i made it.

I make it work, putting the forder with the files, in the package where is the class that needs those file.

Is this the only way to make it work? Can't i store files in a folder placed outside a class package?

This way works
src
|_____package A ----- Class A
|____ImagesFolder

This way doens't work
src
|_____package A ----- Class A
|____ImagesFolder

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points