Preaching that suffering came from the pursuit of personal desire, Buddha had advocated the Middle Way of the Eightfold  right views, right resolve, right speech, right conduct, right livelihood, right effort, right recollection, and right meditation.
Buddha advocated many paths to enlightenment, including meditation.