Sentence:  Then I said in my heart, As it happeneth to the fool, so it happeneth even to me and why then was I more wise? Then I said in my heart that this is also <WSD>vanity</WSD>./ For there is no more remembrance of the wise than the fool forever; seeing that which now is in the days to come shall all be forgotten. And how dieth the wise man? as the fool. 
Meaning of the word marked with <WSD> tags:  That which is vain, futile, or worthless; that which is of no value, use or profit.