Compatibility
On this page
MongoDB Compatibility
The following compatibility table specifies the recommended version(s) of the MongoDB Java Driver for use with a specific version of MongoDB.
The first column lists the driver version(s).
What information does the MongoDB Compatibility table show?
Java Driver Version | MongoDB 6.0 | MongoDB 5.0 | MongoDB 4.4 | MongoDB 4.2 | MongoDB 4.0 | MongoDB 3.6 | MongoDB 3.4 | MongoDB 3.2 | MongoDB 3.0 | MongoDB 2.6 |
---|---|---|---|---|---|---|---|---|---|---|
4.7 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.6 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.5 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.4 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.3 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
4.1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
4.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.12 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.11 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.10 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
3.9 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
3.8 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
3.7 | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
3.6 | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
3.5 | ✓ | ✓ | ✓ | ✓ | ||||||
3.4 | ✓ | ✓ | ✓ | ✓ | ||||||
3.3 | ✓ | ✓ | ✓ | |||||||
3.2 | ✓ | ✓ | ✓ | |||||||
3.1 | ✓ | ✓ | ||||||||
3.0 | ✓ | ✓ |
Language Compatibility
The following compatibility table specifies the recommended version(s) of the MongoDB Java Driver for use with a specific version of Java.
The first column lists the driver version(s).
What information does the Language Compatibility table show?
Java Driver Version | Java 17 | Java 11 [1] | Java 8 | Java 7 | Java 6 | Java 5 |
---|---|---|---|---|---|---|
4.7 | ✓ | ✓ | ✓ | |||
4.6 | ✓ | ✓ | ✓ | |||
4.5 | ✓ | ✓ | ✓ | |||
4.4 | ✓ | ✓ | ✓ | |||
4.3 | ✓ | ✓ | ||||
4.2 | ✓ | ✓ | ||||
4.1 | ✓ | ✓ | ||||
4.0 | ✓ | ✓ | ||||
3.12 | ✓ | ✓ | ✓ | ✓ | ||
3.11 | ✓ | ✓ | ✓ | ✓ | ||
3.10 | ✓ | ✓ | ✓ | ✓ | ||
3.9 | ✓ | ✓ | ✓ | ✓ | ||
3.8 | ✓ | ✓ | ✓ | ✓ | ||
3.4 | ✓ | ✓ | ✓ | ✓ | ||
3.3 | ✓ | ✓ | ✓ | ✓ | ||
3.2 | ✓ | ✓ | ✓ | ✓ | ||
3.1 | ✓ | ✓ | ✓ | ✓ | ||
3.0 | ✓ | ✓ | ✓ | ✓ |
[1] | In the future, only LTS Java versions will be explicitly listed. |
About Compatibility Tables
We include compatibility tables for each version of the driver to guide your decisions on what versions you need to ensure your environment remains fully operational.
We maintain the following tables for each driver:
Read the sections below for detailed explanations of each table.
About MongoDB Compatibility
In the MongoDB Compatibility table, the columns are labeled with versions of MongoDB server and the rows are labeled with major release versions of the driver.
The check marks (✓) indicate that the driver can access all the features of that specific version of MongoDB server unless those features have been deprecated or removed.
If you are upgrading your server version, your current driver should continue to function properly, but may not be able to access the features introduced in the newer server versions. We recommend using the newest compatible driver when upgrading your server version.
If you are upgrading your driver version, you can use the table to identify which version you need to access all the newest features included in a specific version of the server. Also note that any of the minor or patch versions share the same compatibility as the major version release.
We recommend that you avoid using older versions of the drivers that do not appear on the chart because they are unsupported.
Although the drivers do not advertise compatibility with the versions of the server released after them, they are usually interoperable.
About Language Compatibility
In the Language Compatibility table, the columns are labeled with versions of the language (e.g. Node.js, Python, etc.) and the rows are labeled with major release versions of the driver.
The check marks (✓) indicate that the code in the driver is fully compatible with the version of the language.