< /p>
вот мой код: < /p>
Код: Выделить всё
String fileName = "config.properties";
try (InputStream input = Main.class.getClassLoader().getResourceAsStream(fileName)) {
if (input == null) {
System.out.println("Sorry, unable to find " + fileName);
return properties;
}
properties = new Properties();
properties.load(input);
Подробнее здесь: https://stackoverflow.com/questions/737 ... utable-jar