1
我可以使用jooq-3.2.0與db2數據庫一起工作,如果是,在從現有模式生成實體類時必須使用哪個驅動程序。我試圖使用org.jooq.util.db2.DB2Database,但生成器會拋出異常。這裏是堆棧跟蹤:jooq-3.2.0和db2數據庫
java.lang.ClassNotFoundException: org.jooq.util.db2.DB2Database
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.jooq.util.GenerationTool.loadClass(GenerationTool.java:335)
at org.jooq.util.GenerationTool.run(GenerationTool.java:212)
at org.jooq.util.GenerationTool.main(GenerationTool.java:141)
at org.jooq.util.GenerationTool.main(GenerationTool.java:128)
java.lang.ClassNotFoundException: org.jooq.util.db2.DB2Database
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.jooq.util.GenerationTool.loadClass(GenerationTool.java:335)
at org.jooq.util.GenerationTool.run(GenerationTool.java:212)
at org.jooq.util.GenerationTool.main(GenerationTool.java:141)
at org.jooq.util.GenerationTool.main(GenerationTool.java:128)
我現在使用社區版。