In 2020, will Appium will work with JDK8?

Mac OS X Catalina 10.15
openjdk 14.0.2 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-46)
OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
Appium 1.18.1
Android Debug Bridge version 1.0.41
Version 30.0.4-6686687


My problem is common and I am sure a lot of us faced this issue. Sdkmanager is bugging with Java14.

% sdkmanager --version

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema






Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(

at java.base/java.lang.ClassLoader.loadClass(

... 5 more

I saw so many people asking for solution, I tried some of them but it didn’t fix my issue.
I read many people recommend to downgrade to Java8.

Will Java 8 disturb the behavior of last Appium 1.18.1 and add?

How did you fix this issue guys?

I am using the below configuration and it’s working fine with JAVA 8.

java version “1.8.0_241”

Java™ SE Runtime Environment (build 1.8.0_241-b07)

Java HotSpot™ 64-Bit Server VM (build 25.241-b07, mixed mode)

  • MAC OS Catalina
  • appium 1.18.0