The court must make a quick ruling, The Philadelphia Inquirer reported. The deadline for getting Lewis' name on the ballot is Thursday.
New Jersey Democratic leaders hoped Lewis' candidacy would give the ticket some star appeal in this year's legislative races. But the secretary of state ruled he does not meet the requirement of having been a resident of the state for four years.
Lewis, winner of nine gold medals in track and field, comes from Willingboro, N.J., which is in the district where he wants to run. He has also owned a house in New Jersey since 2007, although he has also spent time in California and voted there in 2009.
"We're getting close to the finish line and we have a right for the voters in the 8th District to exercise their vote and have a meaningful choice," William Tambussi, one of Lewis's lawyers, said during the hearing in Philadelphia.
Celebrity Families of 2014 [PHOTOS]