On Fri, Dec 16, 2011 at 4:39 PM, Barrie Treloar <baerr...@gmail.com> wrote: > On Fri, Dec 16, 2011 at 3:12 PM, ashishmemod <ashishme...@gmail.com> wrote: >> thank you for above reply... >> >> But I installed java 6 with update 24 in my system!!! >> >> So now what is meaning of this exception? > > You are mixing versions of Java. > > You have your IDE using Java 5 or Java 6 > and > You have your command line using the other one. > > Make sure you dont mix Java's for compilation, you get these types of > errors otherwise.
Did you confirm that Maven is using the correct JRE? What does mvn -v say? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org