The question is how to specify custom JRE
path for Apache tomcat
in Intellij IDEA
(when starting an application from IDEA
)?
It seems, that just configuring its path (path to jvm.dll
) in Apache Tomcat
monitor doesn't help. Are any other ideas or ways how to do this?
From the main menu, select Help | Find Action or press Ctrl+Shift+A . Find and select the Choose Boot Java Runtime for the IDE action. Select the desired runtime and click OK. If necessary, you can change the location where IntelliJ IDEA will download the selected runtime.
We can change the JRE for Tomcat by setting the JRE_HOME variable in a script file called setenv. bat (on Windows) or setenv.sh (on *nix). This file does not exist by default, so create such file and place it under CATALINA_BASE\bin directory (CATALINA_BASE is the Tomcat installation directory).
Tomcat has Eclipse Java Compiler bundle so it can run on JRE and still support JSP.
Right way is:
"JRE_HOME" with path to needed JRE.
See picture below:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With