Yes, I'm running from B4J, but the log show wrong Java Path. My computer have install java8 - C:\Pragram File\Java, but log show C:\javaAre you running it from B4J?
Which version of Java?
What is the SDK path?
I have both Java 8 and OpenJDK 11. B4A use OpenJDK 11.Error: Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
Error when running v3.32 from B4A Tools -> SDK Manager:DataFolder: C:\Users\XXXXX\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_102\jre
Error: Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
Caused by: java.lang.ClassNotFoundException: com.android.sdklib.tool.sdkmanager.SdkManagerCli
My path is OK, I will not be able to compile app.Your Java path under tools should point to the BIN folder not the jre folder
eg. C:\Program Files (x86)\Java\jdk1.8.0_201\bin\javac.exe
Error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more
Already done that, while using OpenJDK 11, and got error from post above.download https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip from https://www.b4x.com/b4a.html
and try to install it to new folder
update java 8u212
Error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more
Weird - I downloaded that last night setting up a new laptop & had no issues.Error with Ready to run SDK: