Do you use Java inside the database? Or are you using Java to execute commands in a database?
If the former, see the Product Sheet for the version of Oracle you are migrating to. If the latter, anything older than the driver version that comes with the database should work, including the one you mention.
BUT, and that is a very big BUT, JDK 1.6 does not support for more than a year. ojdbc14.jar is even much older, and I do not support, I think, for about a decade.
You really need to upgrade to JDK 1.8 (the latest fix level is 45 or later) and the ojdbc version that comes with the version of Oracle you are upgrading to (ojdbc6).
Better performance, access to new APIs, security fixes, etc. Etc.
source share