Hello, Thank you very much for your message. In more recent JDK versions (especially JDK 11, which no longer ships with JAXB), you will have to include the JAXB dependency with your code generation configuration. We still have to update the manual to reflect this, unfortunately.
In Java 9 and 10, this flag should suffice: --add-modules java.xml.bind In Java 11, you will need the jaxb-api, jaxb-core, jaxb-impl, and javax-activation libraries. I hope this helps, Lukas On Wed, Dec 12, 2018 at 5:00 PM <[email protected]> wrote: > I'm trying to do a simple code generation, as described in the beginning > tutorial, and it's failing as follows. Is there something more I have to > add to the classpath? Something else I'm missing? > > > $ ls -lrt > > total 7384 > > -rw-r--r-- 1 nnovod NYGENOME\Domain Users 2022 Dec 12 10:23 > jooq.xml~ > > -rw-r--r-- 1 nnovod NYGENOME\Domain Users 2027 Dec 12 10:31 jooq.xml > > drwxr-xr-x 3 nnovod NYGENOME\Domain Users 102 Dec 12 10:31 test > > -rw-r--r-- 1 nnovod NYGENOME\Domain Users 148655 Dec 12 10:35 > jooq-codegen-3.11.7.jar > > -rw-r--r-- 1 nnovod NYGENOME\Domain Users 2358120 Dec 12 10:35 > jooq-3.11.7.jar > > -rw-r--r-- 1 nnovod NYGENOME\Domain Users 488051 Dec 12 10:36 > jooq-meta-3.11.7.jar > > -rw-r--r--@ 1 nnovod NYGENOME\Domain Users 769344 Dec 12 10:37 > vertica-jdbc-9.2.0-0.jar > > > $ java -classpath > jooq-3.11.7.jar:jooq-meta-3.11.7.jar:jooq-codegen-3.11.7.jar:vertica-jdbc-9.2.0.0:. > org.jooq.codegen.GenerationTool jooq.xml > > Error: Unable to initialize main class org.jooq.codegen.GenerationTool > > Caused by: java.lang.NoClassDefFoundError: > javax/xml/bind/ValidationEventHandler > > -- > 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.
