Ok I don't love the fact that we rely on the `File#toString` method here, which calls `getPath` internally. I might be wrong but I think the needed change was calling `this.getResource()` instead of `this.getClass().getResource()`, thus you can still call `getPath` given the returned `File`.