use JDK version 6 atleast