Adding CentOS/Ubuntu Java compatibility