What is the meaning of Judges 2:11?

And the children of Israel did evil in the sight of the LORD, and served Baalim: (Judges 2:11 KJV)

And the children of Israel did that which was evil in the sight of Jehovah, and served the Baalim; (Judges 2:11 ASV)

And the children of Israel did evil in the sight of Jehovah, and served the Baals. (Judges 2:11 DBY)

The children of Israel did that which was evil in the sight of Yahweh, and served the Baals; (Judges 2:11 WEB)

And the sons of Israel do the evil thing in the eyes of Jehovah, and serve the Baalim, (Judges 2:11 YLT)

Interlinear

And the children <ben> of Israel <Yisra’el> did <`asah> evil <ra`> in the sight <`ayin> of the LORD, <Y@hovah> and served <`abad> Baalim: <Ba`al>  (Judges 2:11 KJV)

Patrick/Lowth/Whitby/Lowman Commentary

Did evil in the sight of the Lord: By this forgetfulness of God and of his works, and by their familiarity with the people of Canaan, they soon learned to do as they did, and that openly and publicly, not fearing the dreadful sentence of God against such evil doers, who were most odious to him, whatsoever excuses men make for them. So that phrase, “in the sight of the Lord”, may be interpreted.

Served Baalim: The gods of the nations whose land they possessed, who were called by this general name, which signifies lords. For among the heathen, as St. Paul observes, there were gods many and lords many. In Hebrew, he would have said many Baalim, who were their defied great men, as Mr. Mede hath shown (p. 776, of his works). For Baal, (in Chaldee, Bel) the king of Babel next after Nimrod, was the first that was defied, and reputed a god after his death, from whence they called all other demons by the name of Baalim; as from the first Roman emperor who was called Caesar, all that followed him were styled Caesars. Baalim, therefore, being the general name of the gods of Syria, Palestine, and the neighboring countries, there were as many Baals as there were nations: for example, Baal of the Sidonians, and Baal of the Amorites, of the Moabites, and Ammonites, and the rest of the people thereabouts, who had their Baalim (see also Selden, De Diis Syris, Syntagm 2. cap. 1).