Set up Environment Variables

 

  • Go to My Computer, right click and select Properties.

Environment Variable Tab

  • Click the Advanced tab. Then click to open Environment Variables. In this next step, we'll be setting system variables, make sure you aren't creating user variables.

Environment Variable - Systems

  • Set up JAVA_HOME environment variable. 
    • This should be the directory/folder where the JDK is installed.   First, locate where you have the JDK installed. In my example, my JDK was located here: C:\Program Files\Java\jdk1.6.0_21 (Screenshot below shows location of my JDK)

location java environment variable.png

  •  
    • Under System variables, click New to set up a new variable.  In variable name, enter JAVA_HOME  For Variable value, enter or copy and paste the location of the JDK - in my example - C:\Program Files\Java\jdk1.6.0_21 (this will be unique to wherever you installed the JDK).

Java variable.png

  • Set the JAVA environment variable.
    • Alternatively this can be done by editing the existing Path variable.
    • Edit the path variable and copy and past the following at the end of the existing value: ; %JAVA_HOME%\bin;
  • Set up the JETTY_HOME environment variable (this step can be bypassed if using the executable WAR)
    • This time, it should be the directory/folder where Jetty is installed (in my example, this is the Mifos Install folder where I previously unzipped it to). The location for my example was C:\MifosInstall\jetty-distribution-7.3.1.v20110307\jetty-distribution-7.3.1.v20110307 Once again this will be unique to your instance. 
    • Still under System variables, click New to set up another new variable.  In Variable name, enter JETTY_HOME For Variable value enter the location of your Jetty.  In my example, C:\MifosInstall\jetty-distribution-7.3.1.v20110307\jetty-distribution-7.3.1.v20110307 (ONCE AGAIN - THIS WILL BE UNIQUE TO YOUR INSTANCE)

Apache Tomcat variable.png

  • Set up JAVA_OPTIONS.
    • Click New. For Variable name, enter: JAVA_OPTIONS For Variable value, enter or copy and paste the following (make sure to include the initial hyphen):  -Xms1024M -Xmx1024M -XX:MaxPermSize=256m

java_options

  • Set up JETTY options
    • Navigate to your JETTY_HOME directory.
    • Double-click and run the start.ini file and open it in notepad.
     

    • Enter the following lines at the end of the text:
       --exec
       -Xmx512m
       -XX:MaxPermSize=256m
  • Set up MIFOS_CONF.

    • Since we customized our local.properties file, we need to set up a system variable for MIFOS_CONF so Mifos knows which directory in which to locate the custom local.properties file.

    • In my case, this directory is: C:\Mifos Install\mifos-v1.6.1\mifos-v1.6.1\config  This will be unique to your installation and where you've placed your folders. 

    • Location of confg

    • Click New. For variable name, enter: MIFOS_CONF For Variable value, enter the location of your config folder; in my example: C:\Mifos Install\mifos-v1.6.1\mifos-v1.6.1\config

  • Click OK to save and apply the changes.

Go back to top of the page.

0
Your rating: None