|Re: mongodb-java connection [message #1705217 is a reply to message #1705205]
||Wed, 12 August 2015 21:11
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 08/12/2015 02:47 PM, sumit mishra wrote:|
> i have been trying to connect mongodb with java in eclipse
> but after downloading mongo-java- driver r3.0.3 im getting no clue how
> to add the reuired jar file into the classpath? also cant find which jar
> file is there to select from many folders it contains
There are at least 2 ways to do this.
1. Use Maven.
2. Copy the MongoDB Java driver to a subdirectory in your project, e.g.:
lib, then add it to the project by right-clicking the project root, then
choosing Build Path, Configure Build Path, Libraries, then Add JARs...,
then navigate to that subdirectory where the driver was copied and add it.
Hope this helps.
Powered by FUDForum
. Page generated in 0.02523 seconds