Ressource aus jar @ hol
Ich habe Glas mit Dateien:
myJar/res/endingRule.txt
myJar/wordcalculator/merger/Marge.class
n Marge.java habe ich Code:
private static final String ENDINGS_FILE_NAME = "res/endingRule.txt"; .... InputStream inputStream = getClass().getClassLoader().getResourceAsStream(ENDINGS_FILE_NAME); .....<p></p>
But after this inputStream is null. How to work with resources? Why null?