Donald Trump is personally liable for operating a for-profit investment school without the required license, a New York judge ruled in a lawsuit brought by the New York Attorney General against the real estate entrepreneur.

New York state Supreme Court Justice Cynthia S. Kern said he was notified by the state in 2005 that his Trump Entrepreneur Initiative - known as Trump University until 2010 - was in violation of state education law.

"It is undisputed that Mr. Trump never complied with the licensing requirements," Kern wrote in a decision made public on Wednesday.

Damages will be determined later.

Jeffrey Goldman, an attorney for Trump, said the ruling was mistaken, but ultimately little if any damages would be awarded.

The decision came in an ongoing lawsuit filed last year by New York Attorney General Eric Schneiderman that accuses Trump of misleading more than 5,000 people who paid between $1,495 and $35,000 to learn Trump's real estate investment techniques.

A trial still must be held to determine whether Trump and the school defrauded students. The judge did toss out some claims and ruled that some evidence was beyond the statute of limitations.

Damien LaVera, a spokesman for Schneiderman, called the decision "an important victory" and said the office looks forward to proving the rest of the case at trial.