NORRISTOWN, Pa. — Bill Cosby, the comedian and television star who faces charges that he drugged and molested a woman he once mentored at his suburban Philadelphia home more than a decade ago, will be tried starting June 5, 2017, a Pennsylvania judge ruled on Tuesday.

The long-awaited trial will take place about 18 months after criminal charges of sexual assault were first filed against Mr. Cosby, who is accused of assaulting Andrea Constand, a former Temple University employee.

Judge Steven T. O’Neill of Montgomery County also said that he would consider a motion filed by the prosecution to allow as evidence accounts from 13 other women who say they were drugged and sexually assaulted by Mr. Cosby, in episodes stretching from the 1960s through the 1990s.

In Pennsylvania law, as in most states, there is a general rule against admitting evidence from other cases in which no crime has been charged because it could prejudice a trial. But under Pennsylvania’s “prior bad acts” exemption, the judge can allow such evidence — for instance, if the other behavior demonstrates a “common scheme or plan,” a kind of unique fingerprint of the defendant’s behavior.