title: java.lang.NoSuchMethodError: com.google.common.base.Platform.systemNanoTime()J
body: <p>I want connect to google cloud Sql form java to  this error main program while running my code i have this error.</p>
  
  <pre><code>public static void main(String[] args) throws SQLNonTransientConnectionException,
              IOException, SQLException, ClassNotFoundException {
      String instanceConnectionName = "****";
      String databaseName = "***";
      String IP_of_instance = "***";
      String username = "***";
      String password = "****";
      String jdbcUrl = String.format(
              "jdbc:mysql://%s/%s?cloudSqlInstance=%s"
              + "&amp;socketFactory=com.google.cloud.sql.mysql.SocketFactory&amp;useSSL=false",
              IP_of_instance,
              databaseName,
              instanceConnectionName);
  
      Connection connection = DriverManager.getConnection(jdbcUrl, username, password);
  
      try (Statement statement = connection.createStatement()) {
          ResultSet resultSet = statement.executeQuery("SHOW TABLES");
          while (resultSet.next()) {
              System.out.println(resultSet.getString(1));
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>i got this error while running my code :</p>
  
  <blockquote>
    <p><strong>java.lang.NoSuchMethodError: com.google.common.base.Platform.systemNanoTime()J</strong></p>
  </blockquote>
  
  <p>this is my pom file i added the dependency but still i cant access that class </p>
  
  <pre><code> &lt;dependency&gt;
          &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
          &lt;artifactId&gt;appengine-api-1.0-sdk&lt;/artifactId&gt;
          &lt;version&gt;1.9.69&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.httprpc&lt;/groupId&gt;
          &lt;artifactId&gt;httprpc&lt;/artifactId&gt;
          &lt;version&gt;6.3.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- [START servlet] --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- [END servlet] --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.api-client&lt;/groupId&gt;
          &lt;artifactId&gt;google-api-client-appengine&lt;/artifactId&gt;
          &lt;version&gt;1.7.0-beta&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
          &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
          &lt;version&gt;3.3.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.apis&lt;/groupId&gt;
          &lt;artifactId&gt;google-api-services-urlshortener&lt;/artifactId&gt;
          &lt;version&gt;v1-rev57-1.25.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.inject&lt;/groupId&gt;
          &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
          &lt;version&gt;1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.healthmarketscience.sqlbuilder&lt;/groupId&gt;
          &lt;artifactId&gt;sqlbuilder&lt;/artifactId&gt;
          &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- [START_EXCLUDE] --&gt;
      &lt;!-- Test Dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
          &lt;artifactId&gt;appengine-testing&lt;/artifactId&gt;
          &lt;version&gt;1.9.69&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.firebase&lt;/groupId&gt;
          &lt;artifactId&gt;firebase-admin&lt;/artifactId&gt;
          &lt;version&gt;6.8.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
          &lt;artifactId&gt;appengine-api-stubs&lt;/artifactId&gt;
          &lt;version&gt;1.9.69&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
          &lt;artifactId&gt;appengine-tools-sdk&lt;/artifactId&gt;
          &lt;version&gt;1.9.69&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.api-client&lt;/groupId&gt;
          &lt;artifactId&gt;google-api-client&lt;/artifactId&gt;
          &lt;version&gt;1.30.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
          &lt;artifactId&gt;guava&lt;/artifactId&gt;
          &lt;version&gt;23.5-jre&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.truth&lt;/groupId&gt;
          &lt;artifactId&gt;truth&lt;/artifactId&gt;
          &lt;version&gt;0.42&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.13-beta-1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
          &lt;version&gt;2.23.4&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt; &lt;!-- Only used locally --&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.42&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud.sql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-socket-factory&lt;/artifactId&gt;
          &lt;version&gt;1.0.12&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- [END_EXCLUDE] --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.json&lt;/groupId&gt;
          &lt;artifactId&gt;json&lt;/artifactId&gt;
          &lt;version&gt;20160810&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  </code></pre>