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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Issue resolving java dependencies in oracle database (ojvm)

user6995208Oct 24 2024

Hi all

I tried to load a java program compiled with jdk 1.8 into an Oracle 19c database using loadjava.
They are dependencies on another jar but the dependencies are not resolved.
The compiled java sources outside the database works fine.

I was building a testcase: Class with main method invokes other class in external jar.
Steps:
1: Generate jars with eclipse using: export->Runnable JAR file-> Package required libs into generated JAR -> gen.jar
Load it with loadjava -user test_usr/PWD@testdb -verbose -resolve -resolver "((* TEST_USR) (* PUBLIC))" gen.jar
In database the external.jar and the class are visible but the Main_class is invalid.
Compiling throws the error: ORA-29521: referenced object de/externalLibrary/ExtClass could not be resolved
I tried several other loadjava options without success.

Any help would be appreciated!

Thanks in advance.

Comments

BluShadow Jan 3 2025

Eloqua forums are hosted over on the Cloud Customer Connect community, rather than this Developer Comunity where you have posted…

https://community.oracle.com/customerconnect/

If you're not already registered on Cloud Customer Connect you'll need to sign up (it's free) and when joining, specify what categories you are in interested in participating in.

1 - 1

Post Details

Added on Oct 24 2024
1 comment
243 views