Tasmanian judge warns violent men they face jail