ftl-profile-editor
ftl-profile-editor copied to clipboard
java --add-modules=java.xml.bind -jar FTLProfileEditor.jar throws error
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
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.
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?