diff --git a/core-java/pom.xml b/core-java/pom.xml
index 11458f4f60..b7760dc250 100644
--- a/core-java/pom.xml
+++ b/core-java/pom.xml
@@ -231,10 +231,9 @@
1.5.8.RELEASE
- org.hsqldb
- hsqldb
- 2.4.0
- runtime
+ com.h2database
+ h2
+ 1.4.197
diff --git a/core-java/src/main/java/com/baeldung/jdbc/BatchProcessing.java b/core-java/src/main/java/com/baeldung/jdbc/BatchProcessing.java
index d5c53c3ffc..1242eb3628 100644
--- a/core-java/src/main/java/com/baeldung/jdbc/BatchProcessing.java
+++ b/core-java/src/main/java/com/baeldung/jdbc/BatchProcessing.java
@@ -13,8 +13,8 @@ public class BatchProcessing {
public void getConnection(){
try {
- Class.forName("org.hsqldb.jdbcDriver");
- connection = DriverManager.getConnection("jdbc:hsqldb:file:C:\\EMPLOYEEDB", "SA", "");
+ Class.forName("org.h2.Driver");
+ connection = DriverManager.getConnection("jdbc:h2:file:C:\\EMPLOYEEDB", "SA", "");
connection.setAutoCommit(false);
} catch (Exception e) {
e.printStackTrace(System.out);