I have a class in my Java application, which reads a resource folder which is located in src/main/resources. So, in that class, I am specifying the resource folder as:
public static final String RES_LOCATION = "./src/main/resources";
The program runs fine. But when I make a jar and use that as a dependency in another project, that above class fails as it cannot find the resource folder.
Any solution?