I am trying to update a library from JDK 8 to JDK 11; there is an access to getClass().getResource("")
which is converted to URI would result into the path. Now after updating from Java 8 to 11 it's always returning null. Is there any change on JDK which might have caused this?
URI resource = Objects.requireNonNull(getClass().getResource(""), "resource").toURI();