In addition we also want to check the classpath. So first check if a file exists in the filesystem (use the File class) and if not check on the classpath with getClass().getClassLoader().getResourceAsStream()