For verily I say unto you, Till heaven and earth pass, one jot or one tittle shall in no wise pass from the law, till all be fulfilled. For I say unto you, That except your righteousness shall exceed the righteousness of the scribes and Pharisees, ye shall in no case enter into the kingdom of heaven . But not only Jesus, but later in the book of James, James teaches salvation by works also. But compare this to the writings of Paul, who clearly teaches salvation by faith alone. Therefore we conclude that a man is justified by faith without the deeds of the law.
Salvation is the most important doctrine in the Bible.
Throw out this archaic book as inconsistent and out of date. This is not a contradiction. Salvation is by faith alone, as Paul teaches. He that believeth on me hath everlasting life. Jesus teaches salvation by faith alone.