Compress Folder into zip file using Java

Example of compress a folder recursively into a zip file.

 

Example of output.

 

read more

Create Zip archive using Java

An example of compress file into zip file in java.

 Reference

1.http://docs.oracle.com/javase/6/docs/api/java/util/zip/ZipOutputStream.html

read more

Connect to DB2 in Java

db2

An Example of connecting to DB2 Database using JDBC Driver.

A typical example code of connect to database will look like this

read more

Connect to PostgreSQL in Java

postgre

An Example of connecting to PostgreSQL using JDBC Driver.

A typical example code of connect to database will look like this

read more

Connect to MySQL in Java

mysql

An Example of connecting to MySQL using JDBC Driver.

A typical example code of connect to database will look like this

read more

Download JDBC Driver

A JDBC driver is a software component enabling a Java application to interact with a database[1]
You can either download the JDBC driver from the database vendor/provider website (But usually they come with the database installation.)
Below are the list of database vendor and their website url.

read more