Hello Fabio,

As documented in the manual and the tutorial, your XML configuration file
needs to be located on the classpath:
http://www.jooq.org/tutorial.php
http://www.jooq.org/manual/META/Configuration/

Here are a couple of steps to follow (essentially, these are the tutorial
steps):
1. put all jars and the XML file in a directory (let's say
/Users/fabio/Desktop/JOOQ)
2. cd to that directory
3. run java -classpath
jooq-2.1.0.jar:jooq-meta-2.1.0.jar:jooq-codegen-2.1.0.jar:mysql-connector-java-5.1.15-bin.jar
org.jooq.util.GenerationTool /bookstore.xml

Note that "/bookstore.xml" means that bookstore.xml must be located at the
root of your Java classpath, not at the root of your file system

2012/4/1 FB <[email protected]>

> Ok thanks,
>
> if I change the path removing ~/ and usign:
>
> java -classpath /Users/fabio/Desktop/JOOQ/jooq-2.1.0.jar:/Users/fabio/
> Desktop/JOOQ/jooq-meta-2.1.0.jar:/Users/fabio/Desktop/JOOQ/jooq-
> codegen-2.1.0.jar:/Users/fabio/Desktop/JOOQ/mysql-connector-
> java-5.1.15-bin.jar org.jooq.util.GenerationTool /Users/fabio/Desktop/
> JOOQ/bookstore.xml
>
> I got a different error:
>
>
> Apr 1, 2012 5:19:52 PM org.jooq.tools.JooqLogger error
> SEVERE: Cannot find /Users/fabio/Desktop/JOOQ/bookstore.xml
> Apr 1, 2012 5:19:52 PM org.jooq.tools.JooqLogger error
> SEVERE: -----------
> Apr 1, 2012 5:19:52 PM org.jooq.tools.JooqLogger error
> SEVERE: Please be sure it is located on the classpath and qualified as
> a classpath location.
> Apr 1, 2012 5:19:52 PM org.jooq.tools.JooqLogger error
> SEVERE: If it is located at the current working directory, try adding
> a '/' to the path
> Apr 1, 2012 5:19:52 PM org.jooq.tools.JooqLogger error
> SEVERE: Usage : GenerationTool <configuration-file>
>

Reply via email to