Look into getClass.getResource(). Absolute or relative paths to files in your development environment aren't going to work when the project is moved to a .jar file.