A Commentary, Critical, Practical, and Explanatory on the Old and New Testaments, by Robert Jamieson, A.R. Fausset and David Brown  at sacred-texts.com
ecc 7:1(Ecc. 7:1-29)
(See on Ecc 6:12).
name--character; a godly mind and life; not mere reputation with man, but what a man is in the eyes of God, with whom the name and reality are one thing (Isa 9:6). This alone is "good," while all else is "vanity" when made the chief end.
ointment--used lavishly at costly banquets and peculiarly refreshing in the sultry East. The Hebrew for "name" and for "ointment," have a happy paronomasia, Sheem and Shemen. "Ointment" is fragrant only in the place where the person is whose head and garment are scented, and only for a time. The "name" given by God to His child (Rev 3:12) is for ever and in all lands. So in the case of the woman who received an everlasting name from Jesus Christ, in reward for her precious ointment (Isa 56:5; Mar 14:3-9). Jesus Christ Himself hath such a name, as the Messiah, equivalent to Anointed (Sol 1:3).
and the day of [his] death, &c.--not a general censure upon God for creating man; but, connected with the previous clause, death is to him, who hath a godly name, "better" than the day of his birth; "far better," as Phi 1:23 has it.
ecc 7:2Proving that it is not a sensual enjoyment of earthly goods which is meant in Ecc 3:13; Ecc 5:18. A thankful use of these is right, but frequent feasting Solomon had found dangerous to piety in his own case. So Job's fear (Ecc 1:4-5). The house of feasting often shuts out thoughts of God and eternity. The sight of the dead in the "house of mourning" causes "the living" to think of their own "end."
ecc 7:3Sorrow--such as arises from serious thoughts of eternity.
laughter--reckless mirth (Ecc 2:2).
by the sadness . . . better-- (Psa 126:5-6; Co2 4:17; Heb 12:10-11). MAURER translates: "In sadness of countenance there is (may be) a good (cheerful) heart." So Hebrew, for "good," equivalent to "cheerful" (Ecc 11:9); but the parallel clause supports English Version.
ecc 7:5(Psa 141:4-5). Godly reproof offends the flesh, but benefits the spirit. Fools' songs in the house of mirth please the flesh, but injure the soul.
ecc 7:6crackling--answers to the loud merriment of fools. It is the very fire consuming them which produces the seeming merry noise (Joe 2:5). Their light soon goes out in the black darkness. There is a paronomasia in the Hebrew, Sirim ("thorns"), Sir ("pot"). The wicked are often compared to "thorns" (Sa2 23:6; Nah 1:10). Dried cow-dung was the common fuel in Palestine; its slowness in burning makes the quickness of a fire of thorns the more graphic, as an image of the sudden end of fools (Psa 118:12).
ecc 7:7oppression--recurring to the idea (Ecc 3:16; Ecc 5:8). Its connection with Ecc 7:4-6 is, the sight of "oppression" perpetrated by "fools" might tempt the "wise" to call in question God's dispensations, and imitate the folly (equivalent to "madness") described (Ecc 7:5,6). WEISS, for "oppression," translates, "distraction," produced by merriment. But Ecc 5:8 favors English Version.
a gift--that is, the sight of bribery in "places of judgment" (Ecc 3:16) might cause the wise to lose their wisdom (equivalent to "heart"), (Job 12:6; Job 21:6-7; Job 24:1, &c.). This suits the parallelism better than "a heart of gifts"; a benevolent heart, as WEISS.
ecc 7:8connected with Ecc 7:7. Let the "wise" wait for "the end," and the "oppressions" which now (in "the beginning") perplex their faith, will be found by God's working to be overruled to their good. "Tribulation worketh patience" (Rom 5:3), which is infinitely better than "the proud spirit" that prosperity might have generated in them, as it has in fools (Psa 73:2-3, Psa 73:12-14, Psa 73:17-26; Jam 5:11).
ecc 7:9angry--impatient at adversity befalling thee, as Job was (Ecc 5:2; Pro 12:16).
ecc 7:10Do not call in question God's ways in making thy former days better than thy present, as Job did (Job 29:2-5). The very putting of the question argues that heavenly "wisdom" (Margin) is not as much as it ought made the chief good with thee.
ecc 7:11Rather, "Wisdom, as compared with an inheritance, is good," that is, is as good as an inheritance; "yea, better (literally, and a profit) to them that see the sun" (that is, the living, Ecc 11:7; Job 3:16; Psa 49:19).
ecc 7:12Literally, (To be) in (that is, under) the shadow (Isa 30:2) of wisdom (is the same as to be) in (under) the shadow of money; wisdom no less shields one from the ills of life than money does.
is, that--rather, "the excellency of the knowledge of wisdom giveth life," that is, life in the highest sense, here and hereafter (Pro 3:18; Joh 17:3; Pe2 1:3). Wisdom (religion) cannot be lost as money can. It shields one in adversity, as well as prosperity; money, only in prosperity. The question in Ecc 7:10 implies a want of it.
ecc 7:13Consider as to God's work, that it is impossible to alter His dispensations; for who can, &c.
straight . . . crooked--Man cannot amend what God wills to be "wanting" and "adverse" (Ecc 1:15; Job 12:14).
ecc 7:14consider--resumed from Ecc 7:13. "Consider," that is, regard it as "the work of God"; for "God has made (Hebrew, for 'set') this (adversity) also as well as the other (prosperity)." "Adversity" is one of the things which "God has made crooked," and which man cannot "make straight." He ought therefore to be "patient" (Ecc 7:8).
after him--equivalent to "that man may not find anything (to blame) after God" (that is, after "considering God's work," Ecc 7:13). Vulgate and Syriac, "against Him" (compare Ecc 7:10; Rom 3:4).
ecc 7:15An objection entertained by Solomon
in the days of his vanity--his apostasy (Ecc 8:14; Job 21:7).
just . . . perisheth-- (Kg1 21:13). Temporal not eternal death (Joh 10:28). But see on Ecc 7:16; "just" is probably a self-justiciary.
wicked . . . prolongeth--See the antidote to the abuse of this statement in Ecc 8:12.
ecc 7:16HOLDEN makes Ecc 7:16 the scoffing inference of the objector, and Ecc 7:17 the answer of Solomon, now repentant. So (Co1 15:32) the skeptic's objection; (Co1 15:33) the answer. However, "Be not righteous over much," may be taken as Solomon's words, forbidding a self-made righteousness of outward performances, which would wrest salvation from God, instead of receiving it as the gift of His grace. It is a fanatical, pharisaical righteousness, separated from God; for the "fear of God" is in antithesis to it (Ecc 7:18; Ecc 5:3, Ecc 5:7; Mat 6:1-7; Mat 9:14; Mat 23:23-24; Rom 10:3; Ti1 4:3).
over wise-- (Job 11:12; Rom 12:3, Rom 12:16), presumptuously self-sufficient, as if acquainted with the whole of divine truth.
destroy thyself--expose thyself to needless persecution, austerities and the wrath of God; hence to an untimely death. "Destroy thyself" answers to "perisheth" (Ecc 7:15); "righteous over much," to "a just man." Therefore in Ecc 7:15 it is self-justiciary, not a truly righteous man, that is meant.
ecc 7:17over much wicked--so worded, to answer to "righteous over much." For if not taken thus, it would seem to imply that we may be wicked a little. "Wicked" refers to "wicked man" (Ecc 7:15); "die before thy time," to "prolongeth his life," antithetically. There may be a wicked man spared to "live long," owing to his avoiding gross excesses (Ecc 7:15). Solomon says, therefore, Be not so foolish (answering antithetically to "over wise," Ecc 7:16), as to run to such excess of riot, that God will be provoked to cut off prematurely thy day of grace (Rom 2:5). The precept is addressed to a sinner. Beware of aggravating thy sin, so as to make thy case desperate. It refers to the days of Solomon's "vanity" (apostasy, Ecc 7:15), when only such a precept would be applicable. By litotes it includes, "Be not wicked at all."
ecc 7:18this . . . this--the two opposite excesses (Ecc 7:16-17), fanatical, self-wise righteousness, and presumptuous, foolhardy wickedness.
he that feareth God shall come forth of them all--shall escape all such extremes (Pro 3:7).
ecc 7:19Hebrew, "The wisdom," that is, the true wisdom, religion (Ti2 3:15).
than ten mighty--that is, able and valiant generals (Ecc 7:12; Ecc 9:13-18; Pro 21:22; Pro 24:5). These "watchmen wake in vain, except the Lord keep the city" (Psa 127:1).
ecc 7:20Referring to Ecc 7:16. Be not "self-righteous," seek not to make thyself "just" before God by a superabundance of self-imposed performances; "for true 'wisdom,' or 'righteousness,' shows that there is not a just man," &c.
ecc 7:21As therefore thou being far from perfectly "just" thyself, hast much to be forgiven by God, do not take too strict account, as the self-righteous do (Ecc 7:16; Luk 18:9, Luk 18:11), and thereby shorten their lives (Ecc 7:15-16), of words spoken against thee by others, for example, thy servant: Thou art their "fellow servant" before God (Mat 18:32-35).
ecc 7:22(Kg1 2:44).
ecc 7:23All this--resuming the "all" in Ecc 7:15; Ecc 7:15-22 is therefore the fruit of his dearly bought experience in the days of his "vanity."
I will be wise--I tried to "be wise," independently of God. But true wisdom was then "far from him," in spite of his human wisdom, which he retained by God's gift. So "over wise" (Ecc 7:16).
ecc 7:24That . . . far off . . . deep--True wisdom is so when sought independently of "fear of God" (Ecc 7:18; Deu 30:12-13; Job 11:7-8; Job 28:12-20, Job 28:28; Psa 64:6; Rom 10:6-7).
ecc 7:25Literally, "I turned myself and mine heart to." A phrase peculiar to Ecclesiastes, and appropriate to the penitent turning back to commune with his heart on his past life.
wickedness of folly--He is now a step further on the path of penitence than in Ecc 1:17; Ecc 2:12, where "folly" is put without "wickedness" prefixed.
reason--rather, "the right estimation" of things. HOLDEN translates also "foolishness (that is, sinful folly, answering to 'wickedness' in the parallel) of madness" (that is, of man's mad pursuits).
ecc 7:26"I find" that, of all my sinful follies, none has been so ruinous a snare in seducing me from God as idolatrous women (Kg1 11:3-4; Pro 5:3-4; Pro 22:14). As "God's favor is better than life," she who seduces from God is "more bitter than death."
whoso pleaseth God--as Joseph (Gen 39:2-3, Gen 39:9). It is God's grace alone that keeps any from falling.
ecc 7:27this--namely, what follows in Ecc 7:28.
counting one by one--by comparing one thing with another [HOLDEN and MAURER].
account--a right estimate. But Ecc 7:28 more favors GESENIUS. "Considering women one by one."
ecc 7:28Rather, referring to his past experience, "Which my soul sought further, but I found not."
one man--that is, worthy of the name, "man," "upright"; not more than one in a thousand of my courtiers (Job 33:23; Psa 12:1). Jesus Christ alone of men fully realizes the perfect ideal of "man." "Chiefest among ten thousand" (Sol 5:10). No perfect "woman" has ever existed, not even the Virgin Mary. Solomon, in the word "thousand," alludes to his three hundred wives and seven hundred concubines. Among these it was not likely that he should find the fidelity which one true wife pays to one husband. Connected with Ecc 7:26, not an unqualified condemnation of the sex, as Pro 12:4; Pro 31:10, &c., prove.
ecc 7:29The "only" way of accounting for the scarcity of even comparatively upright men and women is that, whereas God made man upright, they (men) have, &c. The only account to be "found" of the origin of evil, the great mystery of theology, is that given in Holy Writ (Gen. 2:1-3:24). Among man's "inventions" was the one especially referred to in Ecc 7:26, the bitter fruits of which Solomon experienced, the breaking of God's primeval marriage law, joining one man to "one" woman (Mat 19:4-6). "Man" is singular, namely, Adam; "they," plural, Adam, Eve, and their posterity.