If you are comparing Isslam to either the Nazi or Imperial Japanese Empire, you are WRONG. It is far, far, worse and has been around a lot longer -- 1400 years to be precise, during which it has slaughtered at least half a billion people.
In the case of Arab terrorism, it's Islam ideology first, envy second; it's both.