You are viewing an older version of this section. Click here to navigate to the latest version.

Setting Up Your Environment (Not Required for Mule IDE Users)

Before you can use Mule, you must create environment variables for Java and optionally Maven, and update your path to include their bin directories. NOTE: If you are using the Mule IDE with Eclipse, these steps are not required.

To run Mule as a Windows service, create system environment variables instead of user environment variables.
  1. Create an environment variable called JAVA_HOME and set it to the directory where the JDK is installed.

  2. For Maven, create an environment variable called MAVEN_HOME and set it to the directory where you unpacked Maven, and then create an environment variable called MAVEN_OPTS and set it to -Xmx512m -XX:MaxPermSize=256

  3. Update the PATH environment variable so that it includes the path to the JDK and Maven binaries. This step is not required if you will use the Mule IDE.

On Windows, use the System utility in the Control Panel to add the environment variables and edit your path. Alternatively, use the export or set commands at the command prompt as shown below:


export JAVA_HOME=/opt/java/jdkexport MAVEN_HOME=/opt/apache/maven-2.0.9export MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=256m'export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin


set JAVA_HOME=C:\Program Files\Java\jdkset MAVEN_HOME=C:\Apache\maven-2.0.9set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=256mset PATH=%PATH%;%JAVA_HOME%\bin;%MAVEN_HOME%\bin