Starting Tomcat within IDEA without setting JAVA_HOME explicitly
Hello,
I try to start Tomcat within IDEA 6, but the catalina start script complains on an missing JAVA_HOME environment variable.
Since I have more than one JDK on my system, I would like to know how I can convince IDEA to inherit the JAVA_HOME path from the JDK I configured for the web module in the project.
Any ideas?
请先登录再写评论。
You can set JAVA_HOME in your run confiugration: Run -> Edit
Congiruations -> Startup/Connection -> Environment Variables
Oliver Fischer wrote:
Is JDK properly configured for your project?
There was an incorrect setting for the project. Thank you for the hint!