<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:54 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-2711] Import sentences throw me an error of not existing package</title>
                <link>https://jira.mongodb.org/browse/JAVA-2711</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;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&apos;m currently working on.&lt;/p&gt;

&lt;p&gt;I make the imports in my code as follows:&lt;/p&gt;

&lt;p&gt;import com.mongodb.async.client.MongoClient;&lt;br/&gt;
import com.mongodb.async.client.MongoDatabase;&lt;/p&gt;

&lt;p&gt;And I have also tried in this way:&lt;/p&gt;

&lt;p&gt;import com.mongodb.MongoClient;&lt;br/&gt;
import com.mongodb.client.MongoDatabase;&lt;/p&gt;

&lt;p&gt;following your documentation. But when I try to compile the code, it throws me the following error:&lt;/p&gt;

&lt;p&gt;error: package com.mongodb.async.client does not exist for the first case and&lt;/p&gt;

&lt;p&gt;error: cannot find symbol&lt;br/&gt;
import com.mongodb.MongoClient; for the second one.&lt;/p&gt;

&lt;p&gt;I have reviewed the content of JAR files and that classes does not exist in any case.&lt;/p&gt;</description>
                <environment>Ubuntu 16.04</environment>
        <key id="472906">JAVA-2711</key>
            <summary>Import sentences throw me an error of not existing package</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="lruizr">Luis Ruiz Ruiz</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Dec 2017 13:40:00 +0000</created>
                <updated>Wed, 11 Sep 2019 19:14:20 +0000</updated>
                            <resolved>Fri, 15 Dec 2017 14:49:32 +0000</resolved>
                                    <version>3.6.0</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1753015" author="ross@10gen.com" created="Fri, 15 Dec 2017 14:49:17 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lruizr&quot; class=&quot;user-hover&quot; rel=&quot;lruizr&quot;&gt;lruizr&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the ticket.  There are various JAR files you can download depending on your requirements:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;mongodb-driver-async&lt;/tt&gt; is the asynchronous driver.  Normally, your package manager will handle the depedencies, but if downloading mongodb-driver manually, you must also download its dependencies: &lt;tt&gt;bson&lt;/tt&gt; and &lt;tt&gt;mongodb-driver-core&lt;/tt&gt;.  See the &lt;a href=&quot;http://mongodb.github.io/mongo-java-driver/3.6/driver-async/getting-started/installation&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;installation guide&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;mongodb-driver&lt;/tt&gt; the synchronous driver. Like the async driver this jar file depends on the &lt;tt&gt;bson&lt;/tt&gt; and &lt;tt&gt;mongodb-driver-core&lt;/tt&gt;.  See the &lt;a href=&quot;http://mongodb.github.io/mongo-java-driver/3.6/driver/getting-started/installation&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;installation guide&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;mongo-java-driver&lt;/tt&gt; is the uber synchronous jar, contains all the synchronous driver dependencies.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I think the issue you are having is that you don&apos;t have the dependencies set correctly your CLASS_PATH.&lt;/p&gt;

&lt;p&gt;Just to let you know this project is for Java driver bugs or feature requests. The best place for questions regarding MongoDB usage or the Java driver specifics is the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user mailinglist&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;stackoverflow&lt;/a&gt; as you will reach a boarder audience there.  If your business requires an answer from MongoDB within a time frame then we do offer &lt;a href=&quot;https://www.mongodb.com/products/production-support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;production support&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you do follow up via one of the options above please post a link and I will follow the conversation there.&lt;/p&gt;

&lt;p&gt;All the best,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htdxq7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>