Paul's references point to the Mosaic law or Torah.
James texts are referring to the Mosiac law to bring the Jews in line, but his emphasis is on the New Testament law of love (God's Law), which we will be judged by.
John's texts are referring to the law of love, God's Royal Law, not the Ten Commandments. Paul, James and John are not promoting the keeping of the Ten Commandments. The Bible Says, that only three things will last FOREVER, faith, hope and love; the greatest of these is love.