Context: I am executing a (third party) jar file from Command Line. The program executes. But when I click a button in the program it results in an error. (Using JDK - 15, JavaFX-15).
Error:
java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
To execute from command line I am using the below (launches the program):
java -jar --module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml programName.jar
Research: Based on these links - Link1 Link2 Link3 & few more in this forum,
I realize that I need to include jaxb jar in the command line. I have downloaded jaxb-api.jar from Maven & kept it in c:\Jar_Files\jaxb-api.jar
I am unable to figure out how I should include the jaxb-api in the command line so that the program does not throw an error when I click the button.
Hope the issue faced is clear, await inputs.