This commit will add code cleanup as corrected and alerted by rubocop. It also adds rules to execute rubocop on Travis.
Gives the major version of the Java release (ie. Java 1.7.0_71, major version is 7) We also want to specifically return nil when java not present