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

java --add-modules=java.xml.bind -jar FTLProfileEditor.jar throws error #125

Open
akuyuu opened this issue Jan 10, 2022 · 2 comments
Open

Comments

@akuyuu
Copy link

akuyuu commented Jan 10, 2022

Trying to run with java --add-modules=java.xml.bind -jar FTLProfileEditor.jar but it throws
Error occurred during initialization of boot layer java.lang.module.FindException: Module java.xml.bind not found

@Vhati
Copy link
Owner

Vhati commented Jan 19, 2022

That used to be bundled in the Java runtime. Since Java 11, Oracle moved to a separate library. The editor will need to be revised slightly to include the new dependecy and be rebuilt to work with Java 11.

https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist

Alternatively, you can install Java 8 (aka 1.8), or possibly Java 9 or Java 10, and the editor should work for you. Multiple Java runtimes can coexist.

@clort81
Copy link

clort81 commented Dec 9, 2022

According to stackoverflaw:

This has been removed from the JDK with version 11+. You have to explicitly add some external dependencies to your project.

    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.glassfish.jaxb</groupId>
        <artifactId>jaxb-runtime</artifactId>
        <version>2.3.1</version>
        <scope>runtime</scope>
    </dependency>

And remove the --add-modules directive.

i've unzipped the .jar. Where would I add that?
[EDIT] on debian (devuan) i can run it by installing openjdk-8-jre-headless
and running
/usr/lib/jvm/java-8-openjdk-arm64/bin/java -jar FTLProfileEditor.jar
Looks like the .jar is missing from the project now?

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

3 participants