When you pack your project to JAR your resource don't live on disk, but are compressed into the JAR itself and you have to load as resource. There are a lot of guide on SO on how to load resource from JAR using ClassLoader.getResourceAsStrem() (follow this link)