Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5173

Comment on: "mongodb-ecosystem/tutorial/getting-started-with-java-driver.txt"

      Hi,

      I couldn't find type org.bson.Document in mongodb-driver-3.0.0.jar.
      Consequently, the following code had a compilation error :
      Mongodatabase db = new MongoClient().getDatabase("myDB");
      db.getCollection("myCollection");

      « The type org.bson.Document cannot be resolved. It is indirectly referenced from required .class files »

      Be care to download mongo-java-driver-3.0.0.jar

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 4 weeks, 4 days ago