'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 10.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
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 10.2.0.1
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
Cause
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
Symptoms |
Cause |
Solution |