You can try and use below details as reference
JDBC Driver class name: mongodb.jdbc.MongoDriver
URL format:jdbc:mongo://<\serverName>/<\databaseName>
e.g. url="jdbc:mongo://ds029847.mongolab.com:29847/tpch";
Con = DriverManager.getConnection(url, "dbuser", "dbuser");
Hope this will help.