Home ClassNotFoundException: org.jooq.util.CatalogVersionProvider
Reply: 0

ClassNotFoundException: org.jooq.util.CatalogVersionProvider

user1544
1#
user1544 Published in May 28, 2018, 9:45 am

Well, I'm trying to link Jooq in H2.

But throws the exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jooq/util/CatalogVersionProvider at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: org.jooq.util.CatalogVersionProvider at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more

I'm testing only one entity:

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Image {

@Id
private Integer idImage;
private String code;
private byte[] data;
private Double width;
private Double height;

// getters and setters
}

My JOOq configuration is on codegen.xml.

I'm using maven then my file is in src/main/resources:

Maven Resources

And my GenerationTool configuration is like:

GenerationTool Configuration

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302981 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO