title: java.lang.ClassNotFoundException: org.mariadb.jdbc.Driver
body: <p>I have the mariadb-java-client-1.4.2.jar included in my eclipse. And the project compiles to jar perfectly fine on my windows machine. The compiled jar file is then being executed on a Fedora 22 machine with mariadb install. However the above error gets thrown when it tries to register the driver. Anyone knows how it can be solved ?</p>
  
  <p>Here is the source code of the function.</p>
  
  <pre><code>    @Override
      protected final Connection initialValue() {
          try {
              Class.forName("org.mariadb.jdbc.Driver"); // touch the mariadb driver
          } catch (final ClassNotFoundException e) {
              System.err.println("ERROR" + e);
          }
          try {
              final Connection con = DriverManager.getConnection(
                  ServerConstants.SQL_URL, 
                  ServerConstants.SQL_USER, ServerConstants.SQL_PASSWORD);
              allConnections.add(con);
              return con;
          } catch (SQLException e) {
              System.err.println("ERROR" + e);
              return null;
          }
      }
  </code></pre>