JRE not detected by Openfire setup on Windows 11

Hello,

I am trying to install and start up my open fire but it’s giving me following error :

I am using the JDK 11.0.20.

I have my javac and java version commands coming out fine. My JAVA_HOME and variables are set as follows :

JAVA_HOME : C:\Program Files\Java\jdk-11
and
path : %JAVA_HOME%\bin

Any help is appreciated.

That’s a head-scratcher. That error is showing on a page that is using Java to be seen by you. It complaining that there is no suitable version of Java seems to be inappropriate - unless you also have installed other (maybe very old) versions of Java.

Can you see if there’s any relevant information in the Openfire log files?

Here is my log trace :

2023.07.31 12:28:03 e[32mINFO e[m [main]: org.jivesoftware.openfire.XMPPServer - Registering shutdown hook (standalone mode)
2023.07.31 12:28:04 e[32mINFO e[m [main]: org.jivesoftware.util.cache.ConsistencyMonitor - Applying configuration for cache consistency check. Enabled: false
2023.07.31 12:28:04 e[32mINFO e[m [main]: org.jivesoftware.openfire.XMPPServer - Openfire 4.7.5 [Jul 31, 2023, 12:28:04 PM]
2023.07.31 12:28:04 e[33mWARN e[m [PluginMonitorTask-2]: org.jivesoftware.util.LocaleUtils - Missing resource for key: system_property.xmpp.xmlutil.parser.core-pool-size in locale en
2023.07.31 12:28:04 e[33mWARN e[m [PluginMonitorTask-2]: org.jivesoftware.util.LocaleUtils - Missing resource for key: system_property.xmpp.xmlutil.parser.maximum-pool-size in locale en
2023.07.31 12:28:04 e[33mWARN e[m [PluginMonitorTask-2]: org.jivesoftware.util.LocaleUtils - Missing resource for key: system_property.xmpp.xmlutil.parser.keep_alive_time in locale en
2023.07.31 12:28:04 e[33mWARN e[m [PluginMonitorTask-2]: org.jivesoftware.openfire.container.AdminConsolePlugin - Admin console: CertificateStoreManager has not been initialized yet. HTTPS will be unavailable.
2023.07.31 12:28:05 e[32mINFO e[m [PluginMonitorTask-2]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Favicon Misses
2023.07.31 12:28:05 e[32mINFO e[m [PluginMonitorTask-2]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Favicon Hits
2023.07.31 12:28:06 e[32mINFO e[m [PluginMonitorTask-2]: org.jivesoftware.openfire.container.AdminConsolePlugin - Admin console listening at http://192.168.0.7:9090
2023.07.31 12:28:06 e[32mINFO e[m [PluginMonitorTask-2]: org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin 'admin'.

There is nothing apparently wrong in the log.

So that brings us to the deadlock. We have no solution to this issue. Because i cant complete the setup of the openfire and there are no explanation to the error setup is throwing.

odd problem. if you just do a simple echo command, do you get the expected output
echo %JAVA_HOME%
I’ve never seen this problem!
also, make sure you have it set as a system variable and not a user one.

Yes,
I am getting the following response for it:
C:\Program Files\Java\jdk-11
And yes i have setup it as the global variable.