I am using mongodb java driver 3.0.2 (I tried 3.0.1 and 3.0.0 but I get the same error).
This is the error that I get: The type org.bson.Document cannot be resolved. It is indirectly referenced from required .class files
It happens on the second line of the following code:
MongoDatabase db = mongoClient.getDatabase("db");
db.getCollection("");
As I understand the second line uses code that exists in org.bson.Document and it cant find it. But where can I find it?
************** EDIT ************ I know added the bson jar and it has the org.bson package BUT there is not org.bson.Document class inside this package...