I am trying to get iReport 2.0.4 connected to MS SQL database but I keep getting UnsupportedOperationException.
I run the following version of jre:
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) 64-Bit Server VM (build 16.2-b04, mixed mode)
I have set up sqldbc4.jar in the classpath of iReport 2.0.4

When I attempt to connect I get the following error:
Message: java.lang.UnsupportedOperationException: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.

Can anyone please provide tips how to resolve this issue?
sqljdbc.jardriver-file on the application classpath (eg included in the application itself). Also make sure you have the JDBC 4 driver, and not the JDBC 4.1 driver from Microsoft. - Mark Rotteveel