MongoDB Java Driver (original) (raw)

Welcome to the documentation site for the Java Driver, the official MongoDB driver for synchronous Java applications. Follow the Get Started tutorial to learn how to add the driver to your project by using Maven orGradle and how to set up a runnable app.

If your Java application requires asynchronous stream processing, use theReactive Streams Driver which uses Reactive Streams to make non-blocking calls to MongoDB.

You can use the Java driver to connect to MongoDB deployments running on one of the following hosted services or editions:

Learn how to establish a connection to MongoDB Atlas and begin working with data in the Get Started section.

For a list of new features and changes in each version, see theWhat's New section.

The MongoDB Java driver API documentation contains several libraries organized by functionality. For detailed information about classes and methods in each library, see the following table for their descriptions and links to the API documentation.

For solutions to some issues you might see when connecting to a MongoDB deployment while using the MongoDB Java Driver, seeConnection Troubleshooting.

Learn how to report bugs, contribute to the driver, and find additional resources for asking questions and receiving help in theIssues & Help section.

For the compatibility charts that show the recommended Java Driver version for each MongoDB Server version, see theCompatibility section.

Learn what changes you might need to make to your application to upgrade driver versions in the Upgrade Driver Versionssection.

Learn about how to validate signatures of Java driver artifacts published on Maven in the Validate Driver Artifact Signatures section.

Learn what changes you might need to make to your application to migrate from the legacy API to the current API in the Migrate from the Legacy API section.

Visit the Developer Hub and MongoDB University to learn more about the MongoDB Java driver.

The Developer Hub provides tutorials and social engagement for developers.

To learn how to use MongoDB features with the Java driver, see the How To's and Articles page.

To ask questions and engage in discussions with fellow developers using the Java Driver, see the forums page.

MongoDB University provides free courses to teach everyone how to use MongoDB.