Star Trek Expanded Universe

The USS Justice (NCC-1721) was a Constitution-class heavy cruiser in service to Starfleet in the 23rd century. She was commanded by Captain Bruce Aranog. (Star Trek: Pioneer)

The Justice went missing in 2263, presumably through a black hole. Later it was discovered that the Justice had encountered a space-time anomaly that transported the ship and its crew into the Oralian sector, to the year 2363. Lost and alone in a strange and technological advanced part of space, the crew soon turned into outlaws; Stealing and adapting alien technology to their ship. The crew nicknamed their ship the Jolly Rogers, after the name given to the flags employed by pirates on Earth in the 17th and 18th century.

In 2380, the Justice encountered the USS Pioneer near the Great Barrier Rift in the Oralian sector. Captain Aranog attempted to takeover the ship, but failed. After his court martial the Justice was seized by Starfleet and decommissioned. ("Space Pirates")