0
try {
Class.forName("mongodb.jdbc.MongoDriver");
} catch (ClassNotFoundException e) {
System.out.println("ERROR: Unable to load SQLServer JDBC Driver");
e.printStackTrace();
return;
}

I am getting unable to load the driver

Mark Rotteveel
  • 90,369
  • 161
  • 124
  • 175
Prakash
  • 1
  • 1

1 Answers1

0

Add the driver jar to your program's classpath, ClassLoader will find and load it.

Rinoux
  • 11
  • 3