Is guestbook.xml located on the classpath? In your case, it would have
to be located in the current working directory ".". On a Linux/Unix
environment, you should be able to see this:

$ cd my-jooq-test-dir
$ ls
guestbook.xml jooq-2.3.0.jar jooq-codegen-2.3.0.jar
jooq-meta-2.3.0.jar mysql-connector-java-5.1.13-bin.jar

And if you see all of the above, then you can run the following (as you tried):

$ java -classpath
jooq-2.3.0.jar:jooq-codegen-2.3.0.jar:jooq-meta-2.3.0.jar:mysql-connector-java-5.1.13-bin.jar:.
org.jooq.util.GenerationTool /guestbook.xml

Cheers
Lukas

2012/5/21 name256 <[email protected]>:
> Hi,
>
> I have just downloaded 2.3 and I am having a torrid time running the code
> generator. I seem to have forgotten how I ran it the last time I used JOOQ.
> I have followed the instructions on the manual to the letter but when i run
> "java -classpath
> jooq-2.3.0.jar:jooq-codegen-2.3.0.jar:jooq-meta-2.3.0.jar:mysql-connector-java-5.1.13-bin.jar:.
> org.jooq.util.GenerationTool /guestbook.xml", I get the result below:
>
> 0    [main] ERROR org.jooq.util.GenerationTool  - Cannot find /guestbook.xml
> 1    [main] ERROR org.jooq.util.GenerationTool  - -----------
> 1    [main] ERROR org.jooq.util.GenerationTool  - Please be sure it is
> located on the classpath and qualified as a classpath location.
> 1    [main] ERROR org.jooq.util.GenerationTool  - If it is located at the
> current working directory, try adding a '/' to the path
> 1    [main] ERROR org.jooq.util.GenerationTool  - Usage : GenerationTool
> <configuration-file>
>
> Kindly assist.

Reply via email to