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,376
  • 11
  • 45
  • 60
deepankardixit90
  • 351
  • 4
  • 19

0 Answers0