New installation for nexus 3.71.0-06 karaf error

hi guys i’m exploring the new release and i got this error:

nexus@minion-3:~/bin$ ./nexus run
Error installing bundle listed in startup.properties with url: reference:file:org/apache/karaf/features/org.apache.karaf.features.extension/4.3.9/org.apache.karaf.features.extension-4.3.9.jar and startlevel: 1
java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.Object java.net.URL.streamHandlerLock accessible: module java.base does not “opens java.net” to unnamed module @402f32ff
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at org.apache.felix.framework.util.SecureAction._swapStaticFieldIfNotClass(SecureAction.java:998)
at org.apache.felix.framework.util.SecureAction.swapStaticFieldIfNotClass(SecureAction.java:983)
at org.apache.felix.framework.URLHandlers.unregisterFrameworkListsForContextSearch(URLHandlers.java:354)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.apache.felix.framework.util.SecureAction.invoke(SecureAction.java:893)
at org.apache.felix.framework.URLHandlers.unregisterFrameworkInstance(URLHandlers.java:685)
at org.apache.felix.framework.URLHandlersActivator.stop(URLHandlersActivator.java:75)
at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:720)
at org.apache.felix.framework.Felix$SystemBundleActivator.stop(Felix.java:5224)
at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:720)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2795)
at org.apache.felix.framework.Felix$2.run(Felix.java:1154)
java.lang.reflect.InaccessibleObjectException: Unable to make field private static volatile java.net.ContentHandlerFactory java.net.URLConnection.factory accessible: module java.base does not “opens java.net” to unnamed module @402f32ff
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at org.apache.felix.framework.util.SecureAction._swapStaticFieldIfNotClass(SecureAction.java:1019)
at org.apache.felix.framework.util.SecureAction.swapStaticFieldIfNotClass(SecureAction.java:983)
at org.apache.felix.framework.URLHandlers.unregisterFrameworkListsForContextSearch(URLHandlers.java:369)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.apache.felix.framework.util.SecureAction.invoke(SecureAction.java:893)
at org.apache.felix.framework.URLHandlers.unregisterFrameworkInstance(URLHandlers.java:685)
at org.apache.felix.framework.URLHandlersActivator.stop(URLHandlersActivator.java:75)
at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:720)
at org.apache.felix.framework.Felix$SystemBundleActivator.stop(Felix.java:5224)
at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:720)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2795)
at org.apache.felix.framework.Felix$2.run(Felix.java:1154)

everything is by default, and i’m installing in ubuntu 20.04 openjdk-17-jre

i was able to solve it following the recommendations from: [NEXUS-19183] Java JDK JRE 11/17 runtime support · Issue #118 · sonatype/nexus-public · GitHub