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

Import sentences throw me an error of not existing package

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.6.0
    • None
    • None
    • Ubuntu 16.04

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lruizr Luis Ruiz Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: