Problem running openmrs-standalone

Hello, I am new with openmrs and I am trying to install openmrs-standalone 2.5.0 on windows 10 with jdk 16. I downloaded the .zip file and ran the command “java -jar openmrs-standalone.jar” and it executed properly. But after going to the url “localhost:8081/openmrs-standalone” it shows this error: The following error occurred at startup: Unable to start OpenMRS. Error thrown was: Failed to update the search index org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: Failed to update the search index at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65) at org.openmrs.web.Listener.contextInitialized(Listener.java:195) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) Caused by: java.lang.RuntimeException: Failed to update the search index at org.openmrs.api.db.hibernate.HibernateContextDAO.updateSearchIndex(HibernateContextDAO.java:533) at org.openmrs.api.db.hibernate.HibernateContextDAO.setupSearchIndex(HibernateContextDAO.java:511) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) at jdk.proxy4/jdk.proxy4.$Proxy189.setupSearchIndex(Unknown Source) at org.openmrs.api.context.Context.startup(Context.java:892) at org.openmrs.web.Listener.startOpenmrs(Listener.java:240) at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.lang.Object.finalize() throws java.lang.Throwable accessible: module java.base does not “opens java.lang” to unnamed module @6dd24d3 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) at org.azeckoski.reflectutils.ClassData$2.run(ClassData.java:165) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at org.azeckoski.reflectutils.ClassData.getAllThings(ClassData.java:163) at org.azeckoski.reflectutils.ClassData.getAllThings(ClassData.java:209) at org.azeckoski.reflectutils.ClassData.getAllThings(ClassData.java:209) at org.azeckoski.reflectutils.ClassData.(ClassData.java:73) at org.azeckoski.reflectutils.ClassFields.(ClassFields.java:611) at org.azeckoski.reflectutils.ClassDataCacher.getClassFields(ClassDataCacher.java:186) at org.azeckoski.reflectutils.ClassDataCacher.getClassFields(ClassDataCacher.java:154) at org.azeckoski.reflectutils.ClassDataCacher.getClassData(ClassDataCacher.java:206) at org.openmrs.util.Reflect.getAllFields(Reflect.java:75) at org.openmrs.util.Reflect.getInheritedFields(Reflect.java:182) at org.openmrs.aop.RequiredDataAdvice.recursivelyHandle(RequiredDataAdvice.java:268) at org.openmrs.aop.RequiredDataAdvice.recursivelyHandle(RequiredDataAdvice.java:226) at org.openmrs.aop.RequiredDataAdvice.before(RequiredDataAdvice.java:129) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:55) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) at jdk.proxy4/jdk.proxy4.$Proxy168.saveGlobalProperty(Unknown Source) at org.openmrs.api.db.hibernate.HibernateContextDAO.updateSearchIndex(HibernateContextDAO.java:529) … 11 more

That version of the standalone requires Java 8

Thank you very much, your answer solved my problem.