In Java, I am trying to follow the convention of putting my resource files into src/main/resources.
I am having trouble accessing the file, I can get it to work from either the IDE or running from CLI (JAR), but never both.
What is the best way of getting the full path to my file so I can access it from either a JAR or the IDE?