Getting Version of JDBC jar File Reports Invalid Or Corrupt Jarfile Ojdbc6.jar Error Message (Doc ID 1665927.1)

Last updated on OCTOBER 25, 2016

Applies to:

JDBC - Version 11.1.0.7 and later
Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Symptoms

After downloading ojdbc6.jar per instructions in <Document: 1094166.1> How to Upgrade ojdbc6.jar and orai18n.jar Bundled With Weblogic 10.3, the following error is obtained:

"Invalid or corrupt jarfile ojdbc6.jar"

Steps to reproduce the issue:

1. Download ojdbc6.jar from JDBC/UCP Download Page
2. Execute java -jar ojdbc6.jar -version
3. This command shows the error "Invalid or corrupt jarfile ojdbc6.jar"



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms