Troubleshooting
Why ojdbc10.jar throws UnsupportedClassVersionError on Java 8
Short answer
The driver's byte code is newer than the gateway's runtime: ojdbc10.jar is compiled for Java 10 and Oracle certifies it for Java 11 and newer, while an Ignition 7.9 gateway runs on Java 8 and refuses it. Load ojdbc8.jar, which restored the reported test environments' connections to Oracle 19c. Installing a JDK does not redirect the service; ojdbc10.jar loads only on Ignition 8.0.x or later with its bundled Java 11.
On this page
- The message is a class-file gate, not a database fault
- The rule behind the two version numbers
- Why the installed JDKs misled the diagnosis
- Worked example: picking the driver for Oracle 19c on a Java 1.8.0_231_b11 gateway
- Replacing the driver with ojdbc8.jar
- When ojdbc10.jar becomes the right choice
- Questions asked
Nothing is wrong with your Oracle side. The exception is the gateway's Java class loader refusing the driver file itself: ojdbc10.jar is compiled for Java 10, Oracle certifies it for Java 11 and newer, and an Ignition 7.9 gateway runs on Java 8, whose loader rejects anything above its own class-file format. That rejection is the UnsupportedClassVersionError nested under the familiar driver-loading line. Installing a JDK changes nothing, because the Windows service keeps launching the gateway on its Java 8 runtime. The fix on the current release is to load ojdbc8.jar, Oracle's Java 8 driver, which restored every Oracle connection in both test environments of the case this article works. ojdbc10.jar becomes loadable only on Ignition 8.0.x or later, with its bundled Java 11 runtime.
The message is a class-file gate, not a database fault #
Open the database connection's status page and copy the whole exception, nested cause included. The outer line, Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', also appears when the jar never reached the gateway at all; that other branch is covered in fixing 'Cannot load JDBC driver class' in Ignition 7.3.9. When the cause underneath reads
java.lang.UnsupportedClassVersionError: oracle/jdbc/driver/OracleDriver has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
the diagnosis is already complete. Read it as three facts:
- The class loader threw before any driver object existed, so no session with Oracle was ever attempted. Password, connection URL and listener settings are not part of this failure, and changing them cannot move the gate.
- The first version number is the class-file format the driver's byte code was compiled for: Java 10.
- The second number is the highest class-file format the refusing runtime accepts: the process that tried the load runs Java 8.
Decision at this gate: stop looking at the database and go to the runtime check below.
The rule behind the two version numbers #
Every compiled class carries a format version, and a runtime loads a class only when that version is at most its own ceiling; the ceiling equals 44 plus the runtime's Java major release. The pair of numbers in the exception therefore identifies both sides exactly, and no gateway setting or database parameter edits either side. The same ceiling governs every other JDBC jar you deploy; the PI driver's Java 8 check is walked through in why JDBC 1.1 and PI Server 5.6 do not answer Java 8 compatibility.
On Oracle's side the pairing is published, not guessed: the driver downloads page certifies ojdbc10.jar with JDK 11, 17, 19 and 21 only. There is no Java 8 or Java 9 entry for that file, which is exactly what the loader told you.
Why the installed JDKs misled the diagnosis #
- The gateway is a Windows service, and it starts on the runtime named in its own service configuration. For an Ignition 7.9 gateway that is a Java 8 runtime. Installing another development kit adds files to the machine; it does not rewrite the service configuration, so the next start throws the same error.
- In this case the server VM carried JDK 9.0.4 next to Java 1.8.0_191 and its driver upload went through cleanly, while the laptop with only Java 1.8.0_231_b11 failed. That inventory proves nothing either way: an upload confirms a file was accepted, and the version check runs only when a connection first tries to load the driver. The server was one connection attempt away from the same message.
- Even a service repointed at the JDK 9 kit would still refuse this driver; the arithmetic is in the worked example below.
- The reading that matters is the Java version the running gateway itself reports on its status diagnostics, not the list in Programs and Features. Record it next to the Ignition version before changing anything.
Worked example: picking the driver for Oracle 19c on a Java 1.8.0_231_b11 gateway #
Inputs, each with its source:
- Driver class-file version 54.0: printed in the nested cause on the connection status page.
- Runtime ceiling 52.0: printed in the same message; the failing machine runs Java 1.8.0_231_b11, the laptop in this case.
- Server VM: Java 1.8.0_191 with JDK 9.0.4 installed alongside, the second machine in this case.
- Target database: Oracle 19c, the upgrade in progress.
- Certification: Oracle's downloads page certifies ojdbc10.jar with JDK 11, 17, 19 and 21.
- Alternative: ojdbc8.jar, Oracle's JDK 8 driver line, which restored all Oracle connections in both test environments after the swap.
Rule, in words: a runtime loads a class only when the class-file version is at most 44 plus its Java major release.
Arithmetic:
- Laptop: 44 + 8 = 52.0 is its ceiling, the driver needs 54.0, so the load is refused, two major releases short.
- Server's newer kit: 44 + 9 = 53.0, still one release below the driver, refused as well. No Java 8 or Java 9 runtime can load this jar.
- Smallest runtime Oracle certifies with ojdbc10.jar: JDK 11 gives 44 + 11 = 55.0, which clears the driver.
Result: on the current gateways no installation makes ojdbc10.jar loadable; the class has to come from a jar compiled for Java 8.
Decision: keep the Java 8 gateways and deploy ojdbc8.jar. That is the resolving branch, confirmed by the two recovered test environments. Reserve ojdbc10.jar for a gateway actually running Ignition 8.0.x or later; reaching that state is an application upgrade with its own test pass, not a driver setting.
Replacing the driver with ojdbc8.jar #
Run the swap in the test environments first; the production connections stay on the old driver until the test gateways hold their connections through a restart.
- Record the exact release of the current jar from its manifest metadata, not just the filename, since different releases share names, and export or screenshot every Oracle connection's settings. Keep the old jar for rollback.
- Download ojdbc8.jar from Oracle's JDBC driver downloads page, accepting the license agreement there, and note the release number in the deployment record.
- On the gateway's database driver page, upload ojdbc8.jar and remove the ojdbc10.jar entry, so two Oracle driver definitions do not compete for the same connections.
- Keep the driver class
oracle.jdbc.driver.OracleDriverand the URLs exactly as they were; the swap does not touch connection-string syntax, whose forms are catalogued in configuring Oracle JDBC drivers and connection string syntax. - Save, then restart the gateway through the normal operational procedure.
- Open each Oracle connection's status page and confirm it is valid; run a read-only query against a known table and check the returned values against the expected schema.
- Restart once more and confirm every connection reopens without manual intervention. Record Ignition version, active Java runtime, driver release and database release together as the tested combination.
When ojdbc10.jar becomes the right choice #
- Ignition 8.0.x and later run on the Java 11 runtime bundled with the installer; that loader accepts the Java 10 byte code in ojdbc10.jar, and no separately installed development kit is needed for it.
- A loadable class is only the first gate: the driver still has to match the database release and the Ignition release, so treat the move as a migration with its own test pass rather than a way to accommodate one jar.
- In a containerized Ignition 8.1 deployment the jar must land on the path the image actually reads; that placement fault produces a different failure and is covered in resolving the Ignition 8.1 Docker Oracle JDBC driver path issue.
Questions asked
Can I rename ojdbc10.jar to ojdbc8.jar so the gateway accepts it?
No. The class-file version is stamped inside every compiled class in the jar, and the loader reads that stamp, never the filename. Renaming or rezipping changes nothing. The gateway needs a jar Oracle actually compiled for Java 8, which is what ojdbc8.jar is; take it from Oracle's downloads page so the exact release is on record.
Does the Oracle 19c upgrade itself force the move to ojdbc10.jar?
No. Oracle certifies each driver file against Java releases, not against a single database release, and the ojdbc8 line remains the driver for JDK 8. In the case this article works, ojdbc8.jar held every connection to 19c. Choose by the runtime the gateway actually runs, then confirm the pairing on Oracle's JDBC compatibility FAQ.
Another gateway shows the same 'Cannot load JDBC driver class' line without a version error. Is it the same fault?
Not necessarily. That outer line also appears when the jar never reached the gateway or the driver class name is wrong. Always read the nested cause: a version rejection names two class-file numbers, a missing file does not. Only the version-error branch is fixed by replacing the jar with ojdbc8.jar.
If I repoint the Windows service to JDK 9.0.4, will ojdbc10.jar load then?
No. A JDK 9 loader's ceiling sits one major release above Java 8's, and this driver was compiled one release above that; the server in this case already had that kit and would have shown the same error at its first connection. The two clean routes stay: ojdbc8.jar on the existing Java 8 runtime, or Ignition 8.0.x on its bundled Java 11.

