Import sentences throw me an error of not existing package

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.0
    • Component/s: None
    • None
    • Environment:
      Ubuntu 16.04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have downloaded the three JAR files to connect to my MongoDB database. I have placed them in a folder of name twitter4j, due to the project I'm currently working on.

      I make the imports in my code as follows:

      import com.mongodb.async.client.MongoClient;
      import com.mongodb.async.client.MongoDatabase;

      And I have also tried in this way:

      import com.mongodb.MongoClient;
      import com.mongodb.client.MongoDatabase;

      following your documentation. But when I try to compile the code, it throws me the following error:

      error: package com.mongodb.async.client does not exist for the first case and

      error: cannot find symbol
      import com.mongodb.MongoClient; for the second one.

      I have reviewed the content of JAR files and that classes does not exist in any case.

            Assignee:
            Unassigned
            Reporter:
            Luis Ruiz Ruiz
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: