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
  • 100,966
  • 191
  • 140
  • 197
Prakash
  • 1
  • 1

1 Answers1

0

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

Rinoux
  • 11
  • 3