The Chabad/Lubavitch Jewish group have a tradition that this song originated as a military march played by Napoleon’s armies as they invaded Russia:
http://www.chabad.org/multimedia/media_cdo/aid/862529/jewish/26-Napoleons-March.htm
Is there any historical backing to this tradition?