Thermal Effects And Activation In Josephson Junctions