java.lang.NoSuchMethodError: org.hibernate.cfg.Environment.verifyProperties (Ljava / util / Map;) V

1

I work on a Java project and when I change the machine, I need to inform the libraries of the project again, but when compiling it generates an error in the output.

Output:

Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V
at org.hibernate.boot.registry.StandardServiceRegistryBuilder.build(StandardServiceRegistryBuilder.java:245)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.buildServiceRegistry(EntityManagerFactoryBuilderImpl.java:1020)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:835)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:75)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

But I do not know where to look for the problem.

    
asked by anonymous 28.10.2015 / 01:03

1 answer

1

I've had problems similar to this one because of using different versions of some library.

Confirm that the libraries for the new machine are the same as for the old one.

    
28.10.2015 / 01:11