How to get the version of Informix JDBC driver without writing any code
INTRODUCTION
Most customers using Informix products are used to having an option which gives them the version of the product being used. This is usually done at the command line using the "-V" option or using a special utility.
For example: esql -V
would give the version of esql or the utility ifx_getversion
can be used to display the version of the ClientSDK.
It is also possible to obtain the version of the JDBC driver contained in the ifxjdbc.jar file from the command line.
BEFORE YOU BEGIN
Make sure you have set the CLASSPATH variable correctly to include the location of ifxjdbc.jar ( or ifxjdbc-g.jar ) and that your PATH has the JDK in it.
STEPS
Execute the following
java com.informix.jdbc.Version
% java com.informix.jdbc.Version
IBM Informix JDBC Driver Version 2.21.JC5