flag if java version is 7 and exit process