handle java 1.8
Merge pull request #172 from rmannibucau/patch-1

handle java 1.8