mongodb jdbc driver

55 views
Skip to first unread message

rastin rastini

unread,
Jan 17, 2016, 11:38:39 PM1/17/16
to mongodb-user
Hi
when using MongoDriver for jdbc connection then classnotfound exception throw.
used mongo-java-driver in pom.
anyone can help?
Thankful.

Wan Bachtiar

unread,
Jan 19, 2016, 1:01:45 AM1/19/16
to mongodb-user

Hi Rastin,

If you are using maven, check your $M2_HOME directory to make sure you have mongo-java-driver there. Alternatively, check your java classpath for the driver.

Can you please post:

  • The version of mongo-java-driver that you are using.
  • Snippet of the pom.xml for the mongo dependencies.
  • The full exception (ClassNotFound) message.
  • Any snippet of code that may be mentioned in the exception message above.
  • Which builder you are using. i.e. maven, ivy, etc.


See MongoDB Java Driver Quick Tour (v3.2) for examples and guides, which may be useful as well.

Regards,

Wan.

Reply all
Reply to author
Forward
0 new messages