There are many people who make the claim that James the Brother of Jesus disagreed with Paul and the rest of the Apostles about salvation by grace through faith. However, if you read the book of James carefully you will see that this is not the case. James talks a lot about how true faith must be accompanied by good works, but he never suggests that good works alone can make you good enough to get to heaven. In fact, he says the opposite:
“For whoever keeps the whole law and yet stumbles at just one point is guilty of breaking all of it” (James 2:10)
“We all stumble in many ways.” (James 3:2)
So James clearly agrees with the rest of the Bible that teaches that all people are sinners guilty of breaking the law. No one can get to heaven by being a good person, because no one (besides Jesus) is a good person. You can only be saved by the power of Jesus death on the cross. If you believe in him with the true kind of faith that produces good works God will forgive you your sins and then you will be saved by the power of Jesus’ goodness.
You can NEVER be saved by your own goodness, because you are not good enough.