Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mulan on JVM 11 #27

Open
arnaldocan opened this issue Apr 16, 2020 · 2 comments
Open

Mulan on JVM 11 #27

arnaldocan opened this issue Apr 16, 2020 · 2 comments

Comments

@arnaldocan
Copy link

Hello

I having trouble to run Mulan on JVM 11 as JAXB is not in the foundation classes anymore. I undersdant I need to add some jars to my class-path, and have tried some options (jakarta.xml.bind-api, javax.activation-api, jaxb-api, jaxb-core, jaxb-impl, jaxb-runtime), but without success.

This is the error I get when a try to run Mulan:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at mulan.data.MultiLabelInstances.loadLabelsMeta(MultiLabelInstances.java:574)
at mulan.data.MultiLabelInstances.(MultiLabelInstances.java:202)
(...)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

Thanks in advance

@Nanfeizhilu
Copy link
Collaborator

I think you need to create two new files in mulan\mulan\ folder:
The https://github.com/Nanfeizhilu/Files-for-Mulan-to-Avoid-NoClassDefFoundError shows how to do this

@arnaldocan
Copy link
Author

Hi, thank's for the answer. I solved this issue by using JVM 8.

I didn't test it, but it seems to me that the suggested fix is for other Mulan error. This one possibly has to do with the removal of Jaxb from the JVM and would require at least the insertion of a jar file in Mulan folder for libs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants