How to Install MIF
The MIF ZIP distribution contains everything you need to run MIF (NOTE: these instructions are for MIF 3.x). This includes:
- The MIF API
- API docs
- Sample code
- An eclipse plugin for MIF developers. This plugin automatically sets up the MIF classpath and imports the sample code
The installer has been tested on Windows XP, RedHat Enterprise Linux 4, and Mac OS X. Note that in the documentation on this site, when we refer to a .bat script, there will usually be a comparable .sh script available on Linux and Mac platforms.
Prerequisites
- JDK 1.6 or greater
- Eclipse 3.4 or greater (if using the Eclipse plugin)
Installing MIF (Eclipse)
- Extract the files to a location that you will remember later on (e.g. C:\MIF-3.0). Make sure the path includes no spaces.
- Open up Eclipse and navigate to the Workbench.
- In the package explorer, right click the empty pane and select “New” and “Java Project” in the subsequent drop down menu.
- Title the new project appropriately – I.e. MIF 3.0, MIF, etc.
- Add the mif-version-all.jar to your eclipse build path by right clicking on your new Java Project, highlighting “build path” and clicking on “configure build path”.
- Click on the libraries tab and click the “add external JARs” and add the mif-version-all.jar
- Then, in this new project, under the source folder, import the samples from MIF folder you extracted under “Mif Home Folder Location”\sources\mif-samples\src
- Create a folder named config and follow the above directions to import the sample config files from “Mif Home Folder Location”\sources\config
- Make the config folder a source folder by right-clicking on the folder and selecting “Use as source folder” in the “Build Path” menu.
- Configure the build path order so that the /config directory appears first; do this by right clicking on the Mif-3.0 folder and selecting “Configure Build Path” from the drop down.
- Your Java project, when done, should look like the screenshot below.
Verify
To test the installation, run the Hello World Example
Be sure to look through the ActiveMQ instructions first.
Disclaimer
Notice: This computer software was prepared by Battelle Memorial Institute, hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 with the Department of Energy (DOE). All rights in the computer software are reserved by DOE on behalf of the United States Government and the Contractor as provided in the Contract. NEITHER THE GOVERNMENT NOR THE CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. This notice including this sentence must appear on any copies of this computer software.











