When using new versions of Java (anything higher than 1.8), you may see the following error
when attempting to use any of the SDK tools, e.g. sdkmanager
...
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
Starting with Java 9, the XmlSchema
library is not included in the base JDK.
To get around this, many people will resort to downgrading to JDK 1.8. This is unneccesary.