My Oracle Support Banner

'Package oracle.jdbc.driver does not exist' Error Trying To Compile Java program with Oracle JDBC Thin Driver on AS/400 (Doc ID 577690.1)

Last updated on AUGUST 30, 2023

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


Trying to compile a java program that accesses a remote Oracle database, located on a Unix server,
from an application running on an IBM iSeries under AS/400 operating system, via JDBC thin
fails with :

javac <JAVA PROGRAM>.java

<JAVA PROGRAM>.java:40: package oracle.jdbc.driver does not exist
import oracle.jdbc.driver.*;
<JAVA PROGRAM>.java:46: cannot resolve symbol

symbol : class OracleDriver
location: package driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());


2 errors


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.