tests: using java 6 for travis-ci (support still required for packaging)