I have a basic cmd program that calls a jar which has an Install class with the main method. The Install class uses a java.util.logging.config.file from its resources folder.
private static void setupLogging() { if (System.getProperty("java.util.logging.config.file") == null) { final InputStream inputStream = Install.class.getResourceAsStream("/logging.properties"); try { LogManager.getLogManager().readConfiguration(inputStream); } catch (final IOException e) { Logger.getAnonymousLogger().severe("Could not load default logging.properties file"); Logger.getAnonymousLogger().severe(e.getMessage()); } } } This install program belongs to a different project and I shouldn't change it. But I want to use a seperate logging.properties file from my disk (preferably from the same folder where I have the cmd program). How do I force this install program to use my logging.properties file instead of it's default one from the resources folder? Is there a way I can force this?