Hi,
I was following the WebAPI Installation Guide on GitHub (WebAPI Installation Guide · OHDSI/WebAP) when I encountered an error in the Tomcat startup section. The error occurred when I ran the following command:
C:\Program Files\tomcat\bin>catalina.bat run
Using CATALINA_BASE: “C:\Program Files\tomcat”
Using CATALINA_HOME: “C:\Program Files\tomcat”
Using CATALINA_TMPDIR: “C:\Program Files\tomcat\temp”
Using JRE_HOME: “C:\Program Files\Java\jdk-1.8”
Using CLASSPATH: “C:\Program Files\tomcat\bin\bootstrap.jar;C:\Program Files\tomcat\bin\tomcat-juli.jar”
Using CATALINA_OPTS: “”
Unrecognized option: --add-opens=java.base/java.lang=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
When I asked ChatGPT about this issue, it suggested upgrading to Java 9 or later. However, the installation guide recommends using Java 8 JDK. What could be the problem here?
Thanks.