У меня есть jar с файлами:
myJar/res/endingRule.txt
myJar/wordcalculator/merger/Marge.class
В Marge.java У меня есть код:
private static final String ENDINGS_FILE_NAME = "res/endingRule.txt";
....
InputStream inputStream = getClass().getClassLoader().getResourceAsStream(ENDINGS_FILE_NAME);
.....
But after this inputStream is null. How to work with resources? Why null?