title: My friend can't connect to Atlas while I can using a java app
body: <p>I'm using the free version of mongoDB Atlas. There is only one user with admin rights, no ip whitelist or other things. My application is supposed to connect using the admin user.</p>
  
  <p>Here's the connection line I'm using (obv I've hidden the password):</p>
  
  <pre><code>        client = MongoClients.create("mongodb+srv://Jules:xxxxxx@onimacluster-7wakg.gcp.mongodb.net/test?retryWrites=true&amp;w=majority");
          database = client.getDatabase("onima");
  </code></pre>
  
  <p>On my pc it works just fine, no errors, I'm getting connected to the clusters. But on my friend's pc nothing works, he only has this error displayed :</p>
  
  <pre><code>[19:15:51 ERROR]: Error occurred while enabling OnimaAPI v1.0 (Is it up to date?)
  java.lang.IllegalArgumentException: The connection string is invalid. Connection strings must start with 'mongodb://'
          at com.mongodb.ConnectionString.&lt;init&gt;(ConnectionString.java:231) ~[spigot.jar:1]
          at com.mongodb.client.MongoClients.create(MongoClients.java:61) ~[mongo-java-driver-3.11.0.jar:?]
          at net.onima.onimaapi.mongo.OnimaMongo.connect(OnimaMongo.java:28) ~[?:?]
          at net.onima.onimaapi.OnimaAPI.registerManager(OnimaAPI.java:117) ~[?:?]
          at net.onima.onimaapi.OnimaAPI.onEnable(OnimaAPI.java:109) ~[?:?]
  </code></pre>
  
  <p>So I read a <a href="https://stackoverflow.com/questions/50916467/how-to-connect-to-atlas-m0-free-tier-cluster-correctly-via-java-driver">thread</a> where someone had the same error. I did as he said in the answer, no errors on my pc again, everything works fine. But again on my friend's pc it doesn't work. Here's the error :</p>
  
  <pre><code>[19:31:44 WARN]: Unsupported option 'retrywrites' in the connection string 'mongodb://Jules:xxxxx@onimacluster-shard-00-00-7wakg.gcp.mongodb.net:27017,onimacluster-shard-00-01-7wakg.gcp.mongodb.net:27017,onimacluster-shard-00-02-7wakg.gcp.mongodb.net:27017/test?ssl=true&amp;replicaSet=OnimaCluster-shard-0&amp;authSource=admin&amp;retryWrites=true&amp;w=majority'.
  [19:31:44 ERROR]: Error occurred while enabling OnimaAPI v1.0 (Is it up to date?)
  java.lang.SecurityException: sealing violation: package com.mongodb is sealed
          at java.net.URLClassLoader.getAndVerifyPackage(Unknown Source) ~[?:1.8.0_221]
          at java.net.URLClassLoader.definePackageInternal(Unknown Source) ~[?:1.8.0_221]
          at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_221]
          at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_221]
          at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_221]
  </code></pre>
  
  <p>And here's what Atlas propose for connecting
  <a href="https://i.stack.imgur.com/gFNeM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gFNeM.png" alt="Atlas Connection Java"></a></p>