E.3. Setting JAVA_HOME

The environment variable JAVA_HOME tells the compiler where to find the home directory of your Java installation.

Example on Windows XP:

1.
Navigate to Start > Control Panel > System
2.
Choose the Advanced tab
3.
Click Environment Variables
4.
In the System Variables pane, click New
5.
For Variable Name, type JAVA_HOME
6.
For Variable Value type, C:\j2sdk1.4.0 for a default installation of SDK 1.4. You may need to adjust your value based on your installation.

Follow the same instructions for related environment variables such as TOMCAT_HOME.

Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.