Error [jSSC-2.8_x86_64.dll+0xb5db]

Good Afternoon
I’m making a project where I need to connect a Pinpad in my USB port. An organization gave me a .jar demo to see how my application needs to operate. Some weeks ago I opened this demo and everything was fine I just wrote (java -jar demo.jar) and opened it. Then I found an error in my application and thought it had to be something involved with Java version so I uninstalled and installed from java jdk 8 to jdk 14. The error involved other stuff so I stayed with jdk-11.0.7 and javafx-sdk-11.0.2.

When I tried to open de demo again this error appeared.

Error: Could not find or load main class “ClassName”
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

The solution was to add modules in cmd
java --module-path C:\Users\Name\Documents\InstaladoresProgramas\JAVFX\javafx-sdk-11.0.2\lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.web,javafx.swing -jar demo.jar

Now the application crashes with this error

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000007110b5db, pid=15212, tid=18252

JRE version: Java™ SE Runtime Environment 18.9 (11.0.7+8) (build 11.0.7+8-LTS)

Java VM: Java HotSpot™ 64-Bit Server VM 18.9 (11.0.7+8-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)

Problematic frame:

C [jSSC-2.8_x86_64.dll+0xb5db]

No core dump will be written. Minidumps are not enabled by default on client versions of Windows

An error report file with more information is saved as:

C:\Users\Name\Desktop\WT\Pinpad\TI\demo\hs_err_pid15212.log

If you would like to submit a bug report, please visit:

https://bugreport.java.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

I know read this error has something to do with the serial port when I connect the pinpad but before I made changes with Java versions it worked just fine