Skip to main content
Added one more screen capture to enhance the answer
Source Link
Shantha Kumara
  • 3.4k
  • 4
  • 42
  • 52

If the issue is with the tomcat running as a Windows Service, following can be done:

Go to Start > Programs > Apache Tomcat > Configure Tomcat (Run as administrator)

In Windows 11, type Configure Tomcat on search, then select Run as administrator Following window will be displayed(mine is Tomcat 9)

Tomcat Configuration Opened

Then select the Java tab and go to Java 9 Options

Java Options Tab in Tomcat Configuration Options

Add the required lines to list of options. For me added following two:

--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED

The resulted screen will be similar to following:

enter image description here

Click Apply and Ok, then restart the Tomcat service from System services list or from Task Manager.

If the issue is with the tomcat running as a Windows Service, following can be done:

Go to Start > Programs > Apache Tomcat > Configure Tomcat (Run as administrator)

In Windows 11, type Configure Tomcat on search, then select Run as administrator Following window will be displayed(mine is Tomcat 9)

Tomcat Configuration Opened

Then select the Java tab and go to Java 9 Options

Java Options Tab in Tomcat Configuration Options

Add the required lines to list of options. For me added following two:

--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED

Click Apply and Ok, then restart the Tomcat service from System services list or from Task Manager.

If the issue is with the tomcat running as a Windows Service, following can be done:

Go to Start > Programs > Apache Tomcat > Configure Tomcat (Run as administrator)

In Windows 11, type Configure Tomcat on search, then select Run as administrator Following window will be displayed(mine is Tomcat 9)

Tomcat Configuration Opened

Then select the Java tab and go to Java 9 Options

Java Options Tab in Tomcat Configuration Options

Add the required lines to list of options. For me added following two:

--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED

The resulted screen will be similar to following:

enter image description here

Click Apply and Ok, then restart the Tomcat service from System services list or from Task Manager.

Source Link
Shantha Kumara
  • 3.4k
  • 4
  • 42
  • 52

If the issue is with the tomcat running as a Windows Service, following can be done:

Go to Start > Programs > Apache Tomcat > Configure Tomcat (Run as administrator)

In Windows 11, type Configure Tomcat on search, then select Run as administrator Following window will be displayed(mine is Tomcat 9)

Tomcat Configuration Opened

Then select the Java tab and go to Java 9 Options

Java Options Tab in Tomcat Configuration Options

Add the required lines to list of options. For me added following two:

--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED

Click Apply and Ok, then restart the Tomcat service from System services list or from Task Manager.