To produce infantry, cavalry, air units, or fleets in Hearts of Iron 2, open the production tab at the top of the screen and choose the appropriate unit category before recruiting.