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

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

    XMLWordPrintable

Details

    • 1
    • Docs Sprint 18 - 4/24 (461)
    • true

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 8 weeks, 1 day ago