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

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

    XMLWordPrintableJSON

Details

    • 1
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 9 weeks, 3 days ago