<div dir="ltr">Hi<div><br></div><div>I&#39;ve been investigating possibilities for enhancing Eclipse Equinox Framework to allow it to run across different &quot;class path&quot; models.  This includes running out of a flat class path or using the JPMS in Java 9+ module path to load OSGi bundles and components into the Framework which are not controlled by the OSGi module layer class loaders.  One interesting aspect of this could be to try compiling a set of OSGi bundles and the Equinox Framework into a Graal Substrate native image.</div><div><br></div><div>I have been making some progress, but have hit a surprising limitation that I want to confirm and see if there is any workarounds or plans to remove the limitation.  It appears native image applications cannot set the URLStreamHandlerFactory.  I get this exception at runtime when I do:<br></div><div><br></div><div>Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: Unsupported field java.net.URL.handlers is reachable<br>    at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:102)<br>    at java.net.URL.setURLStreamHandlerFactory(URL.java:1118)<br>    at org.eclipse.osgi.internal.url.EquinoxFactoryManager.installURLStreamHandlerFactory(EquinoxFactoryManager.java:42)<br></div><div><br></div><div>I&#39;m curious why such a limitation exists and if there is any way to work around it?  I can catch this exception at runtime and move on, but it does remove a important feature of the Framework.</div><div><br></div><div>Thanks</div><div><br></div><div>Tom Watson</div><div><br></div></div>