Use the built-in file system provider rather than the custom file system provider. Add "public static FileSystemProvider create" method in DefaultFileSystemProvider which is from java8API to be compatible against runtime.
------------- Commit messages: - 8331467: Fix JDK-8331467 ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider Changes: https://git.openjdk.org/jdk/pull/21997/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21997&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8331467 Stats: 33 lines in 5 files changed: 32 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/21997.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21997/head:pull/21997 PR: https://git.openjdk.org/jdk/pull/21997