jamJam is usually produced by taking mashed or chopped fruit and boiling it with sugar and water.  When the mixture reaches a temperature of 104 °C, the acid and the pectin in the fruit react with the sugar, and the jam will set on cooling.