Skip to Main Content

Java and JavaScript in the Database

Announcement

Testing banner

How can my Java code work on the IDE but not in the database? (with same Java version)

Hi all,
I have written a fairly simple function to be able to send Google FCM notifications. My Database version is 12.2 and the JDK version it has is 1.8.0_121
Before writing the code, I set the right JDK version on NetBeans after downloading the exact same Java version as above on my laptop. The code compiles fine and I've downloaded the dependencies (I went with a maven type app on the IDE).
When I load the classes to the database using "loadjava" not all of them resolve in the end. After several attempts to resolve them and to recompile the invalid ones I'm still left with a few thousands of invalid Java classes/objects.
I'm looking for ideas related to how I could solve this problem and if it makes sense to other people that my dependencies and code work fine on the IDE while but don't work when I try to install them in the DB.
Any help would be appreciated. Thanks in advance.

Comments
Post Details
Added on Dec 21 2022
0 comments
49 views