[DOCS-5173] Comment on: "mongodb-ecosystem/tutorial/getting-started-with-java-driver.txt" Created: 06/Apr/15  Updated: 08/Dec/16  Resolved: 07/Apr/15

Status: Closed
Project: Documentation
Component/s: ecosystem
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 64bits.
Eclipse Kepler release 2.

Location: http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-java-driver/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Referrer: http://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CCwQFjAB&url=http%3A%2F%2Fdocs.mongodb.org%2Fecosystem%2Ftutorial%2Fgetting-started-with-java-driver%2F&ei=SNIiVbmCE-Hl7gbM4oCgAg&usg=AFQjCNH1-4yb4tleL0NZPsAlCt0P7S6dZQ&sig2=cI14pXOBAZAnNeuBJrRlzQ&bvm=bv.89947451,d.ZGU
Screen Resolution: 1920 x 1080
repo: docs-ecosystem
source: tutorial/getting-started-with-java-driver


Participants:
Days since reply: 8 years, 45 weeks, 2 days ago

 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



 Comments   
Comment by Kay Kim (Inactive) [ 07/Apr/15 ]

Redirect for the getting-started-with-java-driver (which was for the version 2.13) was not correctly redirecting.

Comment by Githook User [ 07/Apr/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5173 fix redirect
Branch: master
https://github.com/mongodb/docs-ecosystem/commit/a80d951ff9d37de87ba5e50d7050cd1a3ebb8241

Generated at Thu Feb 08 07:49:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.