How do I access a config file inside the jar?

if it’s inside a JAR, it’s not a File, generally speaking. You should load the data using Class.getResourceAsStream(String), or something similar.

Leave a Comment