Skip to Main Content

Java and JavaScript in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with unresolved classes using loadjava

Matthew MorrisOct 31 2017 — edited Nov 15 2017

Full disclosure -- I am a PL/SQL developer. I write a small amount of Java-by-Google when I need to perform some function in the database that isn't possible via PL/SQL alone.  In this case, I am trying to load the Apache POI classes into Oracle so that I can (eventually) write a package that will allow me to update existing Excel files using PL/SQL package with Java in the background.  I mention this because while I have coded with PL/SQL for 20+ years, there is nothing that can be done wrong about loading JAR files via loadjava that is so incredibly stupid that it's impossible for me to be doing it.

I'm using Oracle 11.2 Standard Edition and loading JAR files from the latest version of Apache POI (3.17).  I'm using the following three commands to load the files into the database.  The first generates a handful of 'unable to resolve' errors.  The second two get the error on essentially every class being loaded.  I don't have any idea where to even start on determining what dependencies that I'm missing that could be causing the errors.  Any assistance would b greatly appreciated.

loadjava -r -user [username]/[password] -verbose commons-codec-1.10.jar

loadjava -r -user [username]/[password] -verbose poi-ooxml-3.17.jar

loadjava -r -user [username]/[password] -verbose poi-3.17.jar

This post has been answered by Matthew Morris on Nov 15 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2017
Added on Oct 31 2017
2 comments
2,076 views