I'm attempting to build a .jar that contains a non-standard images and fonts, which I have added to the resource folder in my project. I am able to load them into my project with the following code.
URL url = ClassLoader.getSystemResource("./some_font.ttf");
Font font = Font.createFont(Font.TRUETYPE_FONT, url.openStream());
While this works when I run the program in the IDE, when the exported jar is run it is unable to load the font.