Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2741

Getting class not found exception

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.2
    • Component/s: Connection Management
    • Environment:
      Test

      Exception in thread "main" java.lang.NoClassDefFoundError: com/mongodb/MongoClient
      at com.mongodb.example.mongoexample.Mogoconnection.main(Mogoconnection.java:20)
      Caused by: java.lang.ClassNotFoundException: com.mongodb.MongoClient
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 1 more

            Assignee:
            Unassigned Unassigned
            Reporter:
            Rahulmongo RAHUL KARANJAVKJAR [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: