Jean Valjean was taken before the tribunals of the time for theft and breaking and entering an inhabited house at night.
Jack is doing time for breaking and entering.
It began with his peeping through Windows into girls' bedrooms and soon escalated to breaking and entering.