Hi, First you need to check whether you are using the correct jar or not.
Check which Configuration class does the Classloader is loading. Ideally it should pick from the following : import net.sf.hibernate.cfg.Configuration; (Hibernate2) import org.hibernate.cfg.Configuration; (Hibernate3) Thanks, Nirmal On Tue, May 26, 2009 at 10:12 PM, <pxk5...@njit.edu> wrote: > > I am having a problem with this line of code in the Main.java file > > SessionFactory sessions = new Configuration().configure > ().buildSessionFactory(); > > > It keeps telling me that Configuration is abstract and cannot be > instantiated. Is anyone else experiencing this? How should this > problem be resolved? > > > -- \\\/// / \ | \\ // | ( | (.) (.) |) ----------o00o--(_)--o00o----------------- Stand up,be bold,be strong. Take the whole responsibility on ur own shoulders and know that U are the creator of ur own destiny. ------ooo0------------------------------- ( ) 0ooo \ ( ( ) \_) ) / (_/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---