hibernate with annotations in java, exception at runtime <p>I am new to hibernate and I'm creating a sample program with hibernate annotations. While running the program I'm getting the exception:</p> <pre><code>Java.lang.NoSuchMethodError: org.hibernate.util.ReflectHelper.classForName(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class </code></pre> <p>Can anyone please suggest how to resolve this issue? </p> <p>Stack Trace : </p> <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.util.ReflectHelper.classForName(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class; at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:800) at com.hibernate.tutorial.EmployeePersistor.main(EmployeePersistor.java:12) </code></pre>