I thought I had explained James statement in chapter 5, but obviously it was not clear enough.
In any study of scripture we must examine the context, for the context explains the meaning of the passage. The context here starts with the first verse of James 5.
Jas 5:1 Go to now, ye rich men, weep and howl for your miseries that shall come upon you.
The first verse obviously would include Job as he was the richest man of the East, and obviously Job was weeping and howling due to his miseries. (Job is in a parallel setting with Israel.)
-----------------------------------------------------------------------------------------------------------
Jas 5:2 Your riches are corrupted, and your garments are motheaten. Jas 5:3 Your gold and silver is cankered; and the rust of them shall be a witness against you, and shall eat your flesh as it were fire. Ye have heaped treasure together for the last days.
Job said, Job 7:5 My flesh is clothed with worms and clods of dust; my skin is broken, and become loathsome. James 5:2-3 is obviously a picture of Job.
------------------------------------------------------------------------------------------------------------
Jas 5:4 Behold, the hire of the labourers who have reaped down your fields, which is of you kept back by fraud, crieth: and the cries of them which have reaped are entered into the ears of the Lord of sabaoth.
Compare James 5:4 with Job 30:2 Yea, whereto might the strength of their hands profit me, in whom old age was perished? Job’s labourers were no longer any value to him.
-------------------------------------------------------------------------------------------------------------
Jas 5:5 Ye have lived in pleasure on the earth, and been wanton; ye have nourished your hearts, as in a day of slaughter.
Job 29:6 When I washed my steps with butter, and the rock poured me out rivers of oil;
--------------------------------------------------------------------------------------------------------------
Jas 5:6 Ye have condemned and killed the just; and he doth not resist you.
We know that Job was not there when Jesus was crucified, but isn’t our sin responsible for the crucifixion of Christ? It was all our sin that condemned Jesus.
---------------------------------------------------------------------------------------------------------------
James has given us a picture of Israel. We know that Israel would sin, then be chastised by God, then be good for awhile, and then fall back into sin. With this thought in mind, James reminds them of the life of Job, how he endured God’s chastising. And in the end found salvation through God’s righteousness. It was when Job realized his righteousness was vile and he abhorred himself, that he accepted God’s righteousness.
The picture James portrays here is the same picture Paul portrayed in Romans ten.
Rom 10:1-4 Brethren, my heart's desire and prayer to God for Israel is, that they might be saved. For I bear them record that they have a zeal of God, but not according to knowledge. For they being ignorant of God's righteousness, and going about to establish their own righteousness, have not submitted themselves unto the righteousness of God. For Christ is the end of the law for righteousness to every one that believeth.
For conciseness James presented Job as an example of a wealthy rich man whom God had blessed, just as God had blessed Israel. Israel then falling back into sin because of their unredeemed nature, like unto Job, who was then chastised for that sin. James is telling Israel not to give up hope, but to hang in there like Job, who eventually realized that his problem was his pride.