To plead guilty under U.S. military law , a defendant must know they were committing a crime .