Java version modified

Changed from 1.7 to 1.6 because of compatibility issues.