How to Install NMIM on a Windows Machine
IMPORTANT! Please read all of the material in this file prior to beginning the installation and print this file to guide you in installation.
- Minimum System Requirements
- Contents of the NMIM Installation Zip File or CD-Rom
- Installation Procedure
- Running NMIM from a Desktop Windows Computer
- Known Bugs and Problems
For assistance with the installation and installation instructions, please Contact Us.
Minimum System Requirements
If you are installing NMIM on a stand-alone PC, you'll need Windows 2000, NT, or XP or later, at least 5 gigabytes of free hard drive space, and at least 256 megabytes of RAM.
Contents of the NMIM Installation Zip File or CD-Rom
The NMIM installation program installs NMIM2005 (version NMIM20060310), including MOBILE6.2.03 and NONROAD2005 (February 2006 version), and the NMIM County Database (version NCD20060201).
The NMIM installation disk contains these instructions (readme.doc) and the following five folders:
- InstallerData - needed by the installation program
- NMIMDocumentation - supplemental documents of interest
for running and understanding NMIM
- 420r05024.pdf - How NMIM works.
- nmim_technical_memorandum_1104.pdf - How state and local organizations should submit changes to the NMIM County Database (NCD) as part of the NEI process.
- VMT_Fractions.pdf - How to go from the 8 MOBILE5 vehicle classes to the 28 MOBILE6 vehicle classes
- MySQL4021 - for installing MySQL
- Windows - for installing NMIM
- MySQLTools
- MySQL-query-browser-1.1.15-win.msi - for installing MySQL Query Browser,an optional graphical interface for working with MySQL databases.
- MySQL Control Center - for installing MySQL Control Center, an optional graphical interface for working with MySQL databases.
- MySQL from an Access mdb.doc - How to use Microsoft Access as a front end for working with MySQL databases.
Installation Procedure
The installation process is the same regardless of whether you are installing NMIM to run on a single PC or to use it on multiple PCs on a network. If you plan to use a network, however, you must install the software separately on each PC.
The full NMIM product installation consists of two distinct software installations:
- MySQL*, which must be installed first, and
- The rest of NMIM, which includes the NMIM program and source code, the NMIM Un-installer, the Java virtual machine and compiler, the NMIM County Database, and the software programs Ant, JUunit and JFCUnit.
Two optional programs, MySQL Query Browser and MySQL Control Center, are included and provide two different graphical ways to view and work with MySQL databases. Their installation is also detailed below.
If you have a CD-Rom, work from that. If you downloaded NMIMInstall20060328.zip, unzip it (preserving the file structure), which will create a folder called NMIMInstall20060328. That folder will contain the same subfolders and files as the CD.
1. Install MySQL First
This step can be skipped if the computer already has MySQL installed. The version of MySQL we are using is 4.0.21. (We are pretty sure, but not positive, that newer versions will also work with NMIM.)
If you have an earlier version of MySQL installed, we recommend replacing it with the newer version that is distributed with this installation, which can be accomplished by proceeding with the installation described below. However, you must first stop MySQL as a service. Stop the service by clicking Start, Settings, Control Panel, Administrative Tools, Services. Find MySQL in the list of services. Right click on MySQL, and then click on Stop.
Open the MySQL4021 folder (using Windows Explorer or equivalent) and double click SETUP.EXE. This will start the MySQL installation program. Follow the instructions carefully. The screens are as follows:
- Welcome - click Next
- Information - click Next
- Choose Destination Location: we recommend the default, C:\mysql - click Next
- Setup Type: choose "typical" installation - click Next
- Finish
Complete MySQL documentation is installed with the program and may be found in C:\mysql\docs.
Proper configuration of MySQL and installing and starting the MySQL server are handled by the NMIM installation program below.
2. Install NMIM
Open the Windows folder (using Windows Explorer or equivalent) and double click instnmim.exe. Follow the directions carefully. We recommend that you respond to each installation screen as follows:
2.1. Introduction
Click Next.
2.2. Choose Install File
The default choice of C:\NMIM\NMIM20060310 is recommended. However, you may choose an alternate path. Click Next.
2.3. Choose Shortcut Folder
Choose where to put the NMIM icons. The recommended choice is the "Desktop". Click Next.
2.4. Choose Program Type
Install both the Master and Worker. Click Next.
2.5. Choose Optional Features
Install ALL of the Optional Features and click Next. If these are not present on the Target computer, NMIM will not function. If they are already present, the installation program will alert you to that fact, and their installation can be skipped, or they can be over-written. Go ahead and install Java even if your computer already has it. NMIM requires a specific version of Java. Different versions of Java already on your computer will not be overwritten.
Then choose the Optional Feature Folder location. We recommend that you choose the default root folder C:\ to install all of the Optional Features and click Next.
At the Pre-Installation Summary screen, click Install.
2.6. Install NMIM
The installer will first copy the "jarred" (similar to zipped) county database. This can take a while depending on the speed of your computer.
Next, the Java SDK installer will start. The screens and our recommendations are as follows:
- Welcome - click Next
- Custom Setup - de-select Demos and Source Code by left clicking on them and selecting "Don't install this feature now." - click Next
- Browser Registration - check or uncheck according to your preference. These choices do not affect NMIM - click Install
- InstallShield Wizard Completed - click Finish
This will install Sun Java version j2sdk1.4.2_03 on your computer. NMIM requires that this exact version of Java be available. Other versions of Java may not work with NMIM. However, other versions of Java can exist on your computer, and installing Java version j2sdk1.4.2_03 will not overwrite or prevent other previously installed versions of Java from operating.
2.7 Setup Complete
The Java installer may ask if you want to restart your computer. Choose "No, I will restart my computer later." (If you choose "restart," the installation will be interrupted and you will have to begin again.)
2.8. Choose MySQL Folder
Leave as default (C:\mysql), unless you installed MySQL somewhere else. The installer will complain if it cannot find the folder. When you click Next, the installer will "unjar" the county database into the C:\MySQL\data folder. The name of the County Database included in this installation package is NCD20060201. Upon completion of the NMIM installation, you should verify that the folder C:\MySQL\Data\NCD20060201 exists. It should contain two folders, ExternalFiles and Readme, and numerous files with the extensions frm, myd, and myi.
2.9. Choose Java SDK Folder
Leave as default (C:\j2sdk1.4.2_03), unless you put it somewhere else. Click Next.
2.10. Choose Shared Work Folder
Default location (C:\NMIM\NMIM20060310\sharedwork) is recommended, but you can put it anywhere you want. Click Next.
Then click Done to quit the installer.
3. Graphical MySQL Tools
These are not necessary to run NMIM, but are convenient for looking at MySQL databases, including the NMIM County Database and the NMIM output databases that are generated by running NMIM. We supply both tools because each has its advantages. Control Center lets you easily see how many records are in each table and the variable types of each field. Query Browser is better for browsing through tables and generating simple queries. Both are easy to install.
3.1 Install MySQL Query Browser
Open the "MySQL Tools" folder and click mysql-query-browser-1.1.15-win.msi. The screens are as follows:
- Welcome - click Next
- Readme Information - click Next
- Destination Folder: we recommend the default (C:\ProgramFiles\mysql\MySQL Query Browser 1.1\) - click Next
- Setup type: We recommend "Complete"
- Install
- Finish
When you start MySQL Query Browser for the first time from the desktop icon, a screen will open with boxes to specify a number of parameters. All you have to fill in is localhost in the Server Host box. When you click OK, a message box will appear saying "No Default Schema Specified." Check the box which says "Do not show this message anymore" and Click "Ignore." Use the Help menu to learn how to use the software.
3.2 Install MySQL Control Center
Open the "MySQL Tools" folder and then the "MySQL Control Center" folder and click setup.exe. The screens are as follows:
- Welcome - click Next
- Readme Information - click Next
- Destination Folder: we recommend the default
- Select Features - Deselect the translations, unless you want a language other than English.
- Ready to Install the Application - Next
- Finish
When you start MySQL Control Center for the first time, it will ask for a User Name, which can be anything you want, and a Host Name, which must be "localhost". The basic screen of the program is a window called Console Manager. There will be a sub-panel called MySQL Servers. Double click on localhost and then on Databases. Use the Help menu to learn how to use the software.
Running NMIM from a Desktop Windows Computer
You must start TWO programs, a Master and a Worker. The Master is started by the icon labeled "NMIMGUI." The Worker is started by the icon labeled "WORKERGUI." You make your selections and click execute using NMIMGUI, but it is the Worker that runs NONROAD and MOBILE. Unfortunately, the Master (NMIMGUI) won't give you any warning if there is no Worker available. It will just sit there forever waiting for a Worker. The Master-Worker arrangement may seem peculiar, but it is the basis for NMIM's distributed processing capability.
After starting the NMIMGUI, consult the HELP menu for further instructions.
Known Bugs and Problems
- Do not specify an existing NMIM County Database (input) for your NMIM results data (output). This will cause the SCC and SCCToxics tables to be deleted from the NMIM system, rendering it nonfunctional.If you do this accidentally, you will have to reinstall all the files.You must always specify a new or an existing output database for your results data.
- Users must supply VMT in the BaseYearVMT table of the NMIM County Database (NCD) for all calendar years after 2002. The NMIM County Database version NCD20051207 contains validated VMT for only two years, 1999 and 2002, both developed for the National Emission Inventory (NEI). Because the onroad Fleet function in NMIM requires VMT from the NCD to allocate Fleet VMT to different road types, we have supplied 2050 VMT that is the same as 2002 VMT.Since NMIM interpolates between years with VMT, this means that NMIM thinks that all years from 2002 to 2050 contain the same 2002 VMT. While this is adequate for allocating user-specified fleet VMT to different road types, it is incorrect for general county-wide inventories. Users should not run general county-wide inventories for calendar years after 2002 unless they supply county-specific VMT to the BaseYearVMT table for the years they wish to run.
- The Retrofit function should be used only for diesel vehicles and equipment, because it does not treat evaporative and refueling emissions correctly.
If you have trouble with the installation or operation of NMIM, please email us at mobile@epa.gov.
*Disclaimer: EPA's use of MySQL does not represent an endorsement of the product or any commercial enterprise.