Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » mongodb-java connection
mongodb-java connection [message #1705205] Wed, 12 August 2015 19:31 Go to next message
sumit mishra is currently offline sumit mishraFriend
Messages: 1
Registered: August 2015
Junior Member
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
Re: mongodb-java connection [message #1705217 is a reply to message #1705205] Wed, 12 August 2015 21:11 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:Re: mpirun with arguments
Next Topic:New Android Project option missing in File -> New...
Goto Forum:
  


Current Time: Thu Apr 25 07:41:52 GMT 2024

Powered by FUDForum. Page generated in 0.05406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top