Hello,
I’ve tried same connection, it can connect well to MySQL Server when using in Window (Virtual machine), but when I tried in Mac, it have error like screen.
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at v.sp.a.a(:60)
at v.aam.c.a(:41)
at v.aam.c.b(:78)
at v.aam.av.run(:25)
I’m sure connection information string is correct, Java also setup in Mac.
And I don’t know how to resolve this issue.
Please help me, thank you!