Classical hamiltonian linear systems