java.lang.RuntimeException: Exception getting JDBC Driver

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \ {file location}

Expert tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

Solutions on the web

via GitHub by calhemp
, 1 year ago
Exception getting JDBC Driver
java.lang.RuntimeException: Exception getting JDBC Driver
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at org.mybatis.generator.internal.ObjectFactory.internalClassForName(
at org.mybatis.generator.internal.ObjectFactory.externalClassForName(
at org.mybatis.generator.internal.JDBCConnectionFactory.getDriver(
at org.mybatis.generator.internal.JDBCConnectionFactory.getConnection(
at org.mybatis.generator.config.Context.getConnection(
at org.mybatis.generator.config.Context.introspectTables(
at org.mybatis.generator.api.MyBatisGenerator.generate(
at org.mybatis.generator.api.MyBatisGenerator.generate(
at org.mybatis.generator.api.ShellRunner.main(

Users with the same issue

1392 times, 5 minutes ago
Once, 1 day ago
13 times, 3 days ago
2 times, 3 days ago
Once, 3 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.