Fix java jmx travis test