You know James knew we are saved by grace and not works and he is not contradicting Paul so it is best to understand this book in light of all of the epistles.
Here is some help......
James 2 is dealing with a practical salvation not positional or eternal salvation.
[FONT="] [/FONT]
[FONT="] [/FONT]
[FONT="]"What doth it profit, my brethren, though a man say he hath faith, and have not works? Can faith save [/FONT]
[FONT="]him?" (James 2:14). [/FONT]
[FONT="] [/FONT]
[FONT="]We must ask, "
Save him from what?" [/FONT]
[FONT="] [/FONT]
[FONT="]The answer is simple, two fold, and is found in chapters 1 and 2:[/FONT]
[FONT="] [/FONT]
[FONT="] From a ruined life of sin. [/FONT]
[FONT="] [/FONT]
[FONT="]"Wherefore lay apart all filthiness and superfluity of naughtiness, and receive with meekness the engrafted word, which is able to save your souls [i.e. deliver your lives]" (James 1:21).[/FONT]
[FONT="] [/FONT]
[FONT="] From unfavorable judgment at the Judgment Seat of Christ[/FONT]
[FONT="]. [/FONT]
[FONT="]"So speak ye, and so do, as they that shall be judged by the law of liberty. For he shall have judgment [/FONT]
[FONT="]without mercy, that hath shewed no mercy; and mercy rejoiceth against judgment" (James 2:12 13).[/FONT][FONT="][/FONT]
[FONT="] [/FONT]
[FONT="]"Can faith save him?" The answer simply is, "No!" Faith alone cannot save [/FONT]
[FONT="]him from a ruined life and future judgment.
James then uses verses 15 and 16 to illustrate verse 14[/FONT]
[FONT="].[/FONT]
[FONT="]"If a brother or sister be naked, and destitute of daily food, And one of you say unto them, Depart [/FONT]
[FONT="]in peace, be ye warmed and filled; notwithstanding ye give them not those things which are needful to [/FONT]
[FONT="]the body; what doth it profit?" (James 2:15-16) [/FONT]
[FONT="] [/FONT]
[FONT="]What does it profit, in a practical sense, if we are saved but don't exercise our faith by helping those in need?
Our faith is useless.
Our salvation is doing no one any good if we don't exercise it by helping others.[/FONT]
[FONT="] [/FONT]
https://expreacherman.files.wordpress.com/2012/08/cucuzza-faith-without-works-is-dead.pdf
You fail to understand that James said that to claim you are saved but have no works is to have a dead faith that CAN NOT SAVE.
James 2:14
14What use is it, my brethren, if someone says he has faith but he has no works? Can that faith save him?
The answer to his rhetorical question being, 'no', of course. The (so-called) faith that has no works is the faith that can not save you. Why does the church insist James is wrong?
If you have a 'faith' that produces no work, then you have a faith that can not save you. That's how 'works' are necessary in salvation. Not to earn salvation, but because work is what faith does. Obedience is the footprint of faith, just as it was for Abraham. John goes so far as to call the person who says they know God but does not obey God a LIAR.
1 John 2: NASB
4The one who says, “I have come to know Him,” and does not keep His commandments, is a liar, and the truth is not in him...