Prepare boiling water canner. Heat jars and lids in simmering water until ready for use. Do not boil. Set bands aside.
Combine carrots, pears, pineapple with juice, raisins if using, lemon juice, cinnamon, nutmeg, and cloves in a 6 or 8-quart saucepan. Bring mixture to a boil over high heat, stirring frequently. Reduce heat, cover and boil gently for 20 minutes, stirring occasionally. Remove from heat and whisk in pectin until dissolved. Bring mixture to a full rolling boil that cannot be stirred down, over high heat, stirring frequently.
Add sugar all at once and return to a full rolling boil, stirring constantly. Boil hard for 1 minute, stirring constantly. Remove from heat. Skim foam if necessary.
Ladle hot jam into hot jars leaving 1/4 inch headspace. Wipe rim. Center lid on jar. Apply band and adjust until fit is fingertip tight.
Process in a boiling water canner for 10 minutes, adjusting for altitude. Remove jars and cool. Check lids for seal after 24 hours. Lid should not flex up and down when center is pressed.