Relatives of detained military officers rallied outside court to oppose what they called a politically motivated trial.