0

I have a MAVEN project where I have images in the resources directory. Is there a way to refer those images using relative path? I am trying something like

File file = new File("/images/abc.jpg");

That does not work. Rather it is looking for this path in the directory where jar is deployed/placed. Any leads?

arghtype
  • 4,156
  • 11
  • 43
  • 57
deepankardixit90
  • 339
  • 4
  • 17

0 Answers0