Registry / database / jcc
library12.1.4.0javamavenunverified

A pure-Java Type 4 JDBC driver for connecting Java applications to IBM Db2 LUW databases, supporting JDBC 4 specification.

<dependency> <groupId>com.ibm.db2</groupId> <artifactId>jcc</artifactId> <version>12.1.4.0</version> </dependency>
INSTALL
IMPORT
SIG · JCC
J
jcc
databasejavav12.1.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DB2Driver
com.ibm.db2.jcc.DB2Driver

Minimal example showing how to register the Db2 JDBC driver and connect to a database.

import com.ibm.db2.jcc.DB2Driver; import java.sql.Connection; import java.sql.DriverManager; public class Example { public static void main(String[] args) throws Exception { DB2Driver driver = new DB2Driver(); DriverManager.registerDriver(driver); String url = "jdbc:db2://localhost:50000/SAMPLE"; Connection conn = DriverManager.getConnection(url, "user", "password"); System.out.println("Connected to Db2: " + conn.getMetaData().getDatabaseProductVersion()); conn.close(); } }
Debug
Known issues
gotchaThe JCC driver may require specific Db2 license files for production use; missing license can cause runtime errors.
fix
Ensure the appropriate Db2 license file (e.g., db2jcc_license_cu.jar) is included in the classpath.
affects: all
Upgrade
Version history
12.1.4.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
jcc — mvn dependency:get jcc · libregistry