Update travis config for Java to install JUnit and use Ubuntu-compatible classpath.