Fix: JAXB NoClassDefFoundError on Java 9+ (#218)

JAXB APIs are considered to be a part of Java EE and was removed by default in Java SE 9.
See: https://stackoverflow.com/a/47412779/6238618
This commit is contained in:
Andy Li
2020-04-28 16:31:30 +08:00
committed by GitHub
parent d6984fa450
commit b91d3e71ce
2 changed files with 2 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ dependencies {
compile 'net.lingala.zip4j:zip4j:1.3.3' compile 'net.lingala.zip4j:zip4j:1.3.3'
compile 'net.java.dev.jna:jna-platform:5.0.0' compile 'net.java.dev.jna:jna-platform:5.0.0'
compile 'org.simpleframework:simple-xml:2.7.1' compile 'org.simpleframework:simple-xml:2.7.1'
compile 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'com.formdev:flatlaf:0.30' implementation 'com.formdev:flatlaf:0.30'
} }

View File

@@ -340,7 +340,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
script += jobData.getRenderTask().getScript(); script += jobData.getRenderTask().getScript();
String validationUrl = URLDecoder.decode(jobData.getRenderTask().getValidationUrl()); String validationUrl = URLDecoder.decode(jobData.getRenderTask().getValidationUrl(), "UTF-8");
Job a_job = new Job( Job a_job = new Job(
this.user_config, this.user_config,