Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6944095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:14:29+00:00 2026-05-27T13:14:29+00:00

I am trying to load a jar at runtime, ojdbc14.jar in this case. The

  • 0

I am trying to load a jar at runtime, ojdbc14.jar in this case.
The jar gets loaded properly, and I am also able to create a connection to the DB(oracle).
But whenever I try to do a connection.createStatement(); it gives me this Exception

$Exception in thread “Thread-24” java.lang.IllegalAccessError: tried
to access method
oracle.jdbc.driver.OracleSql.(Loracle/jdbc/driver/DBConversion;)V
from class oracle.jdbc.driver.OracleStatement
at oracle.jdbc.driver.OracleStatement.(OracleStatement.java:641)
at oracle.jdbc.driver.T4CStatement.(T4CStatement.java:702)
at oracle.jdbc.driver.T4CDriverExtension.allocateStatement(T4CDriverExtension.java:50)
at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:584)
at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:550)
at genInstaller.Controller.MetadataScriptManager.checkTableExistence(MetadataScriptManager.java:450)
… … …

Edit:

String dbDriverLocn = //location of ojdbc14.jar 
String strDBDriverURL = "jdbc:oracle:thin:@frewper:1521:ORCL" 
String strDBUserName = "frewper" 
String strDBUserPassword = "frewper" 

new LoadClassTest().callToLoad(dbDriverLocn); 

try 
 { 
  Class.forName("oracle.jdbc.driver.OracleDriver"); 
  Connection conn = DriverManager.getConnection(strDBDriverURL,strDBUserName,strDBUserPassword); 
  Statement st = conn.createStatement(); 
   //Exception occurs here 
 } catch (SQLException e) 
 { 
   e.printStackTrace(); 
 } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:14:30+00:00Added an answer on May 27, 2026 at 1:14 pm

    According to this thread it seems that you have compiled against an older version of the jdbc driver and during run time you try to access methods of no longer visible classes, see Oracles Announcement: oracle.jdbc.driver package desupport .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to dynamically load a class at runtime on the Android platform. The
I am trying to load some GZIP-ed data from a resource in my .jar,
I'm trying to use Class.forName to dynamically load a class from a .jar file
I'm trying to find a way to correctly load both of the Jars (TestApplet.jar
This is my gmaven script, which is trying to find and load a file
I'm trying to load a signed jar with an unsigned library through Webstart. However
I am trying to load a class dynamically from a jar file. It worked
I'm trying to load JRuby dynamically at runtime (so I can execute Ruby code
I have a problem with out of memory when I'm trying load a few
Trying to load a shared lib out of the current '.' dir in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.