如何在Intellij IDEA中为Apache Tomcat指定自定义JRE路径? [英] How to specify custom JRE path for Apache Tomcat in Intellij IDEA?
本文介绍了如何在Intellij IDEA中为Apache Tomcat指定自定义JRE路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题是如何在中指定自定义
JRE
路径 Apache tomcat Intellij IDEA
(从 IDEA
启动应用程序时)?
The question is how to specify custom JRE
path for Apache tomcat
in Intellij IDEA
(when starting an application from IDEA
)?
其在 Apache Tomcat
监视器中的路径( jvm.dll
的路径)是否有任何其他想法或方法如何做?
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?
推荐答案
正确的方法是:
- 转到运行在IDEA中启动的Tomcat配置
- 选择启动/连接选项卡
- 选择所需的运行模式(运行/调试/....)
- 添加新的环境变量:
- Go to run configuration of Tomcat launching in IDEA
- Select "Startup/Connection" tab
- Select desired run mod ("Run"/"Debug"/....)
- add new enviroment variable:
JRE_HOME包含所需JRE的路径。
"JRE_HOME" with path to needed JRE.
查看下图:
这篇关于如何在Intellij IDEA中为Apache Tomcat指定自定义JRE路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文