Other jar files do not include an entry point; they are just libraries to be used by other Java classes. The MongoDB Java driver is like this.
It's not designed to be used by itself. If you are new to Java, you should probably spend some time learning Java before trying to use the Mongo Java driver. This is how to use the 3. Download the single file. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 5 months ago. Active 5 years, 11 months ago. Viewed 24k times. I've used this command but I got an error: java -jar mongo-java-driver TangoStar TangoStar 2 2 gold badges 8 8 silver badges 22 22 bronze badges.
Add a comment. Active Oldest Votes. First, that is not the correct jar. The jar you are referencing above contains the javadocs. The driver jar is: mongo-java-driver TangoStar - You can't run these jars like you are trying to above. Usually, they are provided by the same company which implemented the MongoDb software. The URL is a string text with a specific format, containing information about the host where the database is running, the port, username, database name, etc.
The format is specific to each driver. Any wrong character in the URL may make the database connectivity fail, therefore we recommend installing DbSchema and try to get connected.
DbSchema features for MongoDb are described here. The driver source code is accessible on GitHub. Download the zip, unpack and include the jar files in your classpath. The driver is compatible with Java 8. Driver Source Code. Example :. Git stats 7, commits. Failed to load latest commit information. View code.
Release Notes Release notes are available here. Documentation Reference and API documentation is available here. Navigate to the JAVA project. Click Create Issue - Please provide as much information as possible about the issue type and how to reproduce it.
Versioning Major increments such as 2. Beta APIs marked with the Beta annotation at the class or method level are subject to change. Deprecated APIs marked with the Deprecated annotation at the class or method level will remain supported until the next major release but it is recommended to stop using them. Releases Java Driver 4. Nov 9, Packages 0 No packages published.
Contributors You signed in with another tab or window. Reload to refresh your session.
0コメント