hi, thanks for your answer.
the cfg file is allready set and even when i set the classpath it wont run.
when i use the tutorial
http://www.hibernate.org/hib_docs/v3/re ... orial.html
with a small modification it gives me the same error (i dont understand that because the tutorial should work)
i use hibernate 3.2 and a mysql database
the code:
public class Main {
public static void main(String[] args) {
Session session = HibernateUtil.getSessionFactory().getCurrentSession();
session.beginTransaction();
Projekt theEvent = new Projekt();
theEvent.setProjektnameGer("dsfakjdl");
session.save(theEvent);
session.getTransaction().commit();
HibernateUtil.getSessionFactory().close();
}
}