I've come across Jainism through looking for texts on Buddhism and I've found there seems a considerable amount of overlap. Did Siddhartha Gautama encounter or study under any Jainist teachers? It seems Jainism predates Buddhism by a lot so were these concepts also predating Siddhartha too?
Jainism: The ultimate goal of Jainism is the liberation of the self (jiva) from rebirth, which is attained through the elimination of accumulated karma (the consequences of previous actions). This occurs through both the disciplined cultivation of knowledge and control of bodily passions. When the passions have been utterly conquered and all karma has been removed, one becomes a Jina ("conqueror"), and is no longer subject to rebirth.
These principles include non-violence in all parts of life (verbal, physical, and mental), speaking truth, sexual monogamy, and the detachment from material things. As part of the disciplined and non-violent lifestyle, Jains typically are strict vegetarians and often adhere to a quite arduous practice of non-violence, which restricts the sorts of occupations they may follow (no farming, for instance, since insects are inadvertently harmed in plowing). Jainism's ethical system is based on the idea that right faith, knowledge, and conduct must be cultivated simultaneously.
Like comparing rules of monks and even the five precepts are identical from what I found. The five precepts and five vows are identical from what I saw.
Sounds a whole lot like Buddhism to me! Does anyone know about the Jainism/Buddhism comparison?