java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver


Samebug tips

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

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


7 months ago
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.


6 months ago
Expert tip

Solutions on the web

Solution icon of oraclecommunity
via Oracle Community by 843802, 1 year ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of googlegroups
via Google Groups by Tom Teer, 4 months ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of oraclecommunity
via Oracle Community by 807600, 2 months ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of oraclecommunity
via Oracle Community by 843854, 11 months ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of oraclecommunity
via Oracle Community by 843854, 1 year ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of oraclecommunity
via Oracle Community by 843854, 1 year ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of stackoverflow
via Stack Overflow by Piraba
, 1 year ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of web
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of googlegroups
via Google Groups by fabian...@surf.co.nz, 1 month ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Solution icon of googlegroups
via Google Groups by oglixari, 3 months ago
com.microsoft.jdbc.sqlserver.SQLServerDriver

Stack trace

java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at omu.InfoGetter.<init>(InfoGetter.java)
	at omu.First.<clinit>(First.java)
	at omu.Prime.main(Prime.java)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 3 hours ago
394 times, 21 hours ago
2 times, 1 week ago
209 times, 1 week ago
50 times, 1 week ago
1403 more bugmates