The J-integral for cracks in structures storing elastic, dielectric and thermal energies is derived from thermodynamical fundamentals. The FEM is applied to solve thermoelectromechanical boundary value problems, accounting for piezoelectric coupling, thermoelasticity and the pyroelectric effect. Examples demonstrate the influence of the thermal conductivity of cracks on the loading of the crack tip.