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?

3 comments

You can set JAVA_HOME in your run confiugration: Run -> Edit
Congiruations -> Startup/Connection -> Environment Variables

Oliver Fischer wrote:

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?

0
Avatar
Nikolay Chashnikov

Is JDK properly configured for your project?

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?

0

There was an incorrect setting for the project. Thank you for the hint!

0

Please sign in to leave a comment.