Thanks Rob. Indeed, on Unix/Linux systems, colons need to be used to
separate classpath elements, not semi colons. Also, as Rob correctly
mentioned, the jar files need full qualification each, not just the first
one. Finally, there's a missing whitespace between your classpath and the
org.jooq.codegen.GenerationTool class. This is not going to be an issue
when you use the classpath environment variable as Rob suggested.

However, since you're using Ant, I would suggest you set up your classpath
using Ant:
https://www.jooq.org/doc/latest/manual/code-generation/codegen-ant

The examples are missing the JDBC driver, which you should add as well, of
course.

I hope this helps,
Lukas

On Thu, Jan 31, 2019 at 9:37 PM Rob Sargent <[email protected]> wrote:

>
> On 1/31/19 1:29 PM, 'Sumner R Andrews Jr' via jOOQ User Group wrote:
>
> Rob,
>
>
>
> You are being pretty patient with me.  I have gotten past the java help
> warnings by more or less doing as recommended.  I should have mentioned
> that I am running java 1.10.
>
> I think it may now be a syntax issue:
>
>
>
> sumner@sumner-System-Product-Name:~/JNB/generatedcode/jooq$ java -cp
> /home/sumner/JNB/generatedcode/jooq/jooq-3.11.7.jar;jooq-meta-3.11.7.jar;jooq-codegen-3.11.7.jar;postgresql-42.2.5.jar;org.jooq.codegen.GenerationTool
> jooqsradb.xml
>
> My old, tired eyes think they see semi-colons, not colons. Try the
> following
>
> export CLASSPATH=/home/sumner/JNB/generatedcode/jooq/jooq-3.11.7.jar:
> /home/sumner/JNB/generatedcode/jooq/jooq-meta-3.11.7.jar:
> /home/sumner/JNB/generatedcode/jooq/jooq-codegen-3.11.7.jar:
> /home/sumner/JNB/generatedcode/jooq/postgresql-42.2.5.jar
>
> java org.jooq.codegen.GenerationTool jooqsradb.xml
>
> You may bump into trouble with the refactoring work (jigsaw) done after
> java 1.8.  I'm still using 1.8
>
>
>
> Error: Could not find or load main class jooq-3.11.7.jar
>
> Caused by: java.lang.ClassNotFoundException: jooq-3.11.7.jar
>
> jooq-meta-3.11.7.jar: command not found
>
> jooq-codegen-3.11.7.jar: command not found
>
> postgresql-42.2.5.jar: command not found
>
>
>
> org.jooq.codegen.GenerationTool: command not found
>
> Sent from Sumner Andrews
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to