SyntaxFix
Write A Post
Hire A Developer
Questions
If you are using Gradle, include right jar of driver as below:
compile("org.mongodb:mongo-java-driver:3.3.0")
Or if using Maven then do it in Maven style, it should solve your problem.