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

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

    XMLWordPrintable

    Details

    • Last comment by Customer:
      true
    • Actual Time:
      1
    • Sprint:
      Docs Sprint 18 - 4/24 (461)

      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

            Assignee:
            kay.kim Kay Kim (Inactive)
            Reporter:
            xgen-internal-docs Docs Collector User
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              6 years, 35 weeks, 5 days ago
              Date of 1st Reply: