Knowledge of the law is not a substitute for a law degree for purposes of admission to the bar, the Massachusetts Supreme Judicial Court held Tuesday.