Hello Fabio, This question is not really related to jOOQ, but to the way how Java programs are generally started from the console. Obviously, your classpath is not set up correctly (some typo in directory names? some missing jar files? etc)
I'm not sure if I can help you there apart from pointing you at the relevant manual page or the Java tutorial for starting Java programs: http://www.jooq.org/manual/META/Configuration/ http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/classpath.html Cheers Lukas 2012/3/31 FB <[email protected]>: > Hello, > > I'm new to JOOQ, I'm trying to generate the classes from the database > using this command (MAC OS): > > java -classpath ~/Desktop/JOOQ/jooq-2.1.0.jar:~/Desktop/JOOQ/jooq- > meta-2.1.0.jar:~/Desktop/JOOQ/jooq-codegen-2.1.0.jar:~/Desktop/JOOQ/ > mysql-connector-java-5.1.15-bin.jar:. org.jooq.util.GenerationTool / > bookstore.xml > > > This is my problem, I got NoClassDefFoundError: > > Exception in thread "main" java.lang.NoClassDefFoundError: org/jooq/ > util/GenerationTool > Caused by: java.lang.ClassNotFoundException: > org.jooq.util.GenerationTool > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > > > Thank you. > F.
