Maxwell-Juettner distributions in relativistic molecular dynamics