Alguem pode me ajudar???
Estou estudando Hibernate e estou com a seguinte .java
Session session = new HibernateFactory().getSession();
TransactionFactory trans = new TransactionFactory();
Transaction transaction;
transaction = trans.createTranscation(session);
List<Produto> listaProduto = session.createQuery(
"from nome Produto where id>2;").list();
trans.commitTransaction(transaction);
for (Produto produto : listaProduto) {
System.out.println(produto.getNome());
}
Veja o erro.
Exception in thread “main” java.lang.NoClassDefFoundError: antlr/ANTLRException
at org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(ASTQueryTranslatorFactory.java:35)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:74)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)