Current Page: NeXtMidas Training Installing NeXtMidas Installing on Windows Set the NeXtMidas Environment
- - - | Set the NeXtMidas Environment Variables: NeXtMidas requires that the following environment variables be set: Set `USER` to the user name (this is often the same as their login, it is not their full name):
          set USER=<name>
    - Set `HOME` to point to the user's home directory:
          set HOME=<home_dir>
    - Set `JAVAHOME` to point to the Java installation directory:
          set JAVAHOME=<java_install_dir>
    - Set `NMROOT` to point to the NeXtMidas installation directory:
          set NMROOT=<nxm_install_dir>
    - Set `NMSTART` to point to the NeXtMidas startup script:
          set NMSTART=%NMROOT%\os\dos\nmstart.bat
Many users find it easiest to go in and add these as user or system environment properties that get loaded each time a new shell is started. To set these, goto the Control Panel -> System. On the System Properties dialog select the Advanced tab and click the Environment Variables button near the bottom. Under User variables, click the New button to add the above environment variables one at a time. If you are upgrading to a new version of NeXtMidas you just need to change `NMROOT`, the others will stay the same. New feature (Since NeXtMidas 2.8.3): A ready-to-use Windows batch file has been provided that alleviates the need to manually set Windows environment variables (above). The file is located at `<nxm_install_dir>\os\dos\runNeXtMidas.bat.sample`. To use the batch file, simply copy and rename the file ( `<nxm_install_dir>\runNeXtMidas290.bat`) and modify the `JAVAHOME` and `NMROOT` values within the file, as you did in the steps above. You may then use the `runNeXtMidas290.bat` file to start NeXtMidas, either through the DOS command prompt, as a Windows shortcut, or by double-clicking the batch file from Windows Explorer.