James 1:2 tells us to "consider it all joy" when we face various trials. Normally we are happy when we escape trials and temptations, but here in this verse James is telling us we should rejoice when these trials come. A Christian's Joy flows right on through trouble and darkness.
D.L. Moody was an American evangelist, publisher, and founder of Moody church. Moody was born into a poor family in Northfield, Massachusetts. His father was an alcoholic and died at the age of 41 when Dwight was only four years old. His mother struggled to support the family, but even with her best effort, some of her children had to be sent off to work, because of this Dwight never received much of an education. Many would say that Dwight’s humble upbringing would leave him with his head hung low, and little joy. Instead Dwight was used by God to become among the most well-known Christian evangelists of the 19th century, traveling and preaching in the United States and abroad. Moody would say of the joy he exuded while doing the Lord’s work, “I am so thankful that I have a joy that the world cannot rob me of; I have a treasure that the world cannot take from me; I have something that is not in the power of man or devil to deprive me of, and that is the joy of the Lord.”
Right knowledge of trials makes it possible to have a joyful attitude. The word “knowing” in this verse is a connective to verse 2 when the author writes, “Count it all joy”. James is saying that we can have this joy when we have the right knowledge of what these trials are for. The readers’ must fully understand that what is involved is the testing of their faith. These trials and temptations are the means in which their faith is being proved. It is in trials that we learn to be more like Christ. James 1:3 tells us that we should know that the testing of our faith produces in us patience.
Think of it this way. No one would ever expect to just pick up playing the piano and immediately be a concert pianist. We all know that no one ever learning to play the piano without first making a few mistakes along the way. Suppose I say, that since I always make mistakes when I play I will never practice the piano, what then? You would be correct in telling me that I will never learn to play the piano. Well, so it is with reference to things that are spiritual. The Christian actually needs problems to gain wisdom and strength as he lives. 
The goal of tribulation and trial is to mold the Christian to be a more useful vessel for the Lord’s work. James 1:4 says to “let patience have her perfect work, that ye may be perfect.” This does not mean absolute perfection, as though the believer would then never sin. In this verse the meaning of patience (or more specifically patience perfect work) is spiritual maturity. James is saying that a perfect Christian on earth is one who starts our doing what God would have him to do and keeps on doing it until the end.
I played football (or should I say I was on the team) my Junior and Senior years of High School. If there's anything I learned about football when I played it was that football is extremely competitive. It combines strategy with some extremely physical play. The object of the game is actually quite simply. You have to get the ball over the opposing team's goal line. The ball can be moved either by throwing it or by running it. You can run the ball in any direction but unless they get the ball over the goal line you don't get any points. A mature football team realizes that they have to work together if they are going to score a touchdown. No matter how much they might get hit they have to remain a team if they are going to win the game.
James goes on to say that not only will letting patience have her perfect work help develop us to be more mature, but also we will be entire lacking nothing. The word entire is defined as, “having no reservations or limitations; complete”. It refers to being whole. God would not have any lacking or wanting. If a man meets his testing with the right attitude (counting it all joy), if his decisions are such that they bring glory to God, he develops an unwavering consistency. Each day he lives facing trials the way God would have him to he becomes more and more a complete Christian wanting nothing.
Considering everything that God wants you to teach you in your trial it really does seem quite inappropriate to focus your energies on getting through the trial.
Posted by Caleb