-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema #862
Comments
I would bet you're running java 9 while you should be running 8. |
I have the same problem. The comment above did not help. I have a machine running on mac os. |
Solved the problem by removing all openjdk-*-jdk except openjdk-8-jdk. |
Thanks for the update. I'm closing for now. @wyattbiker feel free to reopen if it's still an issue after installing the correct java version |
@KhDenys Nice |
An alternative is to set the default java version to use as shown here: |
I just wanted to add some clarity to this solution that I also experienced. Below are the instructions I ran to purge and reinstall version 8 for buildozer to install without the errors in the original post.
Those instructions came from here. |
sorry guys I tried everything you mentioned above but nothing worked so far does anyone have any alternative |
I was having the same issue and had installed |
It work, thanks bro!!! |
i have java 8 but still does not work for me. |
I already had Java 8 installed and used sudo update-alternatives --config java |
When I did that I'm facing this instead STDOUT: FAILURE: Build failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 1s STDERR: INFO: STDOUT (last 20 lines of 34):
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 1s export SHELL='/bin/bash' cd /home/dai/pyoffice/kivy_project/kivy_venv/share/kivy1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp && /home/dai/pyoffice/kivy_project/kivy_venv/share/kivy1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp/gradlew clean assembleDebug |
Versions
Description
Followed instructions here for Android on Ubuntu 18.04 (64bit). Replaced python2.7 and the dev with 3.7 on the build-essentials.
sudo apt install build-essential ccache git libncurses5:i386 libstdc++6:i386 libgtk2.0-0:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 python3.7 python3.7-dev openjdk-8-jdk unzip zlib1g-dev zlib1g:i386
I am executing inside a virtualenv
I am also on latest version of kivy and the simple application runs fine under Linux.
I get this error.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(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:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 5 more
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: