Error with libtiled
in Java 21: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
#3919
Labels
bug
Broken behavior.
Describe the bug
When I create an instance of
org.mapeditor.io.MapReader
the following error is produced:Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
To Reproduce
Steps to reproduce the behavior:
1.
Import
libtiled
into your Java project, for example the following Gradle:Somewhere in your code create an instance of
MapReader
, for example:Expected behavior
A clear and concise description of what you expected to happen.
I expect an instance of
MapReader
to be created without any errors.Media
If applicable, add screenshots or videos to help explain your problem.
N/A
Specifications:
Java version
Semi-related issues
#3284 https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception
Until a proper solution is made, I would like to know if there are any workarounds available.
The text was updated successfully, but these errors were encountered: