Activate java 1.6 and 1.7 profiles on jdk version.