This discussion is archived
0 Replies Latest reply: Nov 1, 2006 10:09 AM by 843844 RSS

a cglib.jar KeyFactory.class problem using Hibernate

843844 Newbie
Currently Being Moderated
Hello, please help me:
I am trying to execute an hibernate example, it allows persist products items, however, when I execute:
java test.InsertProduct Milk 100 1.99
I got the message:

Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/cglib/KeyFactory
I'have got the cglib.jar file and added to classpath. The directory structure inside this JAR file, where KeyFactory.class is located is:

I even modified the above directory structure, so the KeyFactory file be located directly under net/sf/cglib, but the problem persists.

Thanks in advance.