Your connection string and and driver type are contradictory. You are trying to make odbc based connection, on the other hand your driver type is oci driver. Moreover your dsn name is missing in the code. Why not use thin driver?
Sorry Wendy I was not sure as to what I was doing. Was not aware that :thin@ needed to be mentioned. Was trying to use the OCIConnection class instead of trying to the driver class from the jar ojdbc14.
On changing these 2 lines of code i was able to connect.