简体   繁体   中英

How to specify custom JRE path for Apache Tomcat in Intellij IDEA?

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?

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:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM