Trying to generate the necessary classes for a jooq program.
I have all three jars, the java connector, and a prop file in a temp location. But when I run:
java -classpath jooq-1.6.8.jar:jooq-meta-1.6.8.jar:jooq-codegen-1.6.8.jar:mysql-connector-java-5.0.8-bin.jar:. org.jooq.util.GenerationTool /jooq.properties
It says: Error : Could not find or load main class org.jooq.util.GenerationTool
What can I do?
I faced the same problem. org.jooq.codegen.GenerationTool should be used instead of org.jooq.util.GenerationTool:
java -classpath jooq-3.11.0.jar:jooq-meta-3.11.0.jar:jooq-codegen-3.11.0.jar:mysql-connector-java-6.0.6.jar:. org.jooq.codegen.GenerationTool library.xml
The manual that you've linked says:
Once you have the JAR files and library.xml in your temp directory, type this on a Windows machine:
java -classpath jooq-3.4.1.jar;jooq-meta-3.4.1.jar;jooq-codegen-3.4.1.jar;mysql-connector-java-5.1.18-bin.jar;. org.jooq.util.GenerationTool /library.xml... or type this on a UNIX / Linux / Mac system (colons instead of semi-colons):
java -classpath jooq-3.4.1.jar:jooq-meta-3.4.1.jar:jooq-codegen-3.4.1.jar:mysql-connector-java-5.1.18-bin.jar:. org.jooq.util.GenerationTool /library.xml
You chose unix separators (colon :) to separate classpath elements, instead of Windows separators (semicolon ;).
Also, consider upgrading to the latest version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With