I hope you slept better last night.
I have an old app that uses jSerial. I've just tried it with jdk 19.0.2 downloaded from
https://www.b4x.com/b4j.html and the latest jSerial from
https://www.b4x.com/android/forum/threads/jserial-library.34762/#content. It connects to the serial port without any problems.
Based on my statement above, and the fact that I've only ever used OpenJDK and have always had comms port conections in this app, I don't think your issue is down to a problem in OpenJDK.
If you're getting this error running in debug within the IDE then you can ignore all the packager stuff for now.
My first suggestion would be to make sure that you have all four of the files related to the jSerial library in your Additional Libraries folder (the latest versions from the jSerial.zip file from
here):
jSerial.jar
jSerial.xml
jssc.jar
slf4j-jdk14-1.7.35.jar.
If that doesn't help, I'd suggest creating a small app that has just your serial connection code and trying that. If it won't run for you, upload it here and I'll try it on my machine.