I have a project that uses the following code to load a csv file
ClassLoader classLoader = getClass().getClassLoader();
final Reader reader = new InputStreamReader(classLoader.getResourceAsStream(file/accounts.csv));
this code works fine when run from within the Intellij IDE but fails to locate the accounts.csv in the jar file.
I unzipped the application.jar and verified the the files/accounts.csv file was included in the jar. Think this is a class path issue, but can't figure it out.
Any help would be appreciated.