title: Failure in loading native library db2jcct2
body: <p>I have a spring boot application that uses Cassandra and DB2 databases. 
  I added the needed configuration to the application.yml file. </p>
  
  <p>Note: my Cassandra and DB2 databases are remote(not local). </p>
  
  <p>Here is what I have in the yaml file:</p>
  
  <pre><code>spring:
    datasource:
      url: jdbc:db2://myRemoteHost:portNumber/MyDBName
      username: username
      password: password
      driver-class-name: com.ibm.db2.jcc.DB2Driver
  
    jpa:
      properties:
        hibernate:
          dialect: org.hibernate.dialect.DB2Dialect
  
    data:
      cassandra:
        cluster-name: cluster name
        keyspace-name: keyspace name
        port: myPortNumber
        contact-points: host1.com
        username: username
        password: password
  </code></pre>
  
  <p>Here is the dependency I'm using in my application:</p>
  
  <pre><code>compile group: 'com.ibm.db2.jcc', name: 'db2jcc', version: 'db2jcc4'
  </code></pre>
  
  <p>When I run the application I got the error below: </p>
  
  <pre><code>    Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][10389][12245][4.25.13] 
  Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: 
  no db2jcct2 in java.library.path:  ERRORCODE=-4472, SQLSTATE=null
  </code></pre>