How to specify custom JRE path for Apache Tomcat i

2019-04-12 06:21发布

问题:

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?

回答1:

Right way is:

  1. Go to run configuration of Tomcat launching in IDEA
  2. Select "Startup/Connection" tab
  3. Select desired run mod ("Run"/"Debug"/....)
  4. add new enviroment variable:

"JRE_HOME" with path to needed JRE.

See picture below: