We consider a potential W : R m → R with two different global minima a − , a + and, under a symmetry assumption, we use a variational approach to show that the Hamiltonian systemhas a family of T -periodic solutions u T which, along a sequence T j → +∞, converges locally to a heteroclinic solution that connects a − to a + . We then focus on the elliptic systemthat we interpret as an infinite dimensional analogous of (0.1), where x plays the role of time and W is replaced by the action functional J R (u) = R ( 1 2 |u y | 2 + W (u))dy. We assume that J R has two different global minimizersū − ,ū + : R → R m in the set of maps that connect a − to a + . We work in a symmetric context and prove, via a minimization procedure, that (0.2) has a family of solutions u L : R 2 → R m , which is L-periodic in x, converges to a ± as y → ±∞ and, along a sequence L j → +∞, converges locally to a heteroclinic solution that connectsū − toū + .