Skip to content

Commit

Permalink
Updates Java version troubleshooting (kivy#1991)
Browse files Browse the repository at this point in the history
Adds the NoClassDefFoundError XmlSchema case and groups related cases
together. Gives instructions for both Ubuntu and macOS to fix.
  • Loading branch information
AndreMiras authored and joergbrech committed Nov 10, 2019
1 parent c5d6be8 commit c842420
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions doc/source/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,26 @@ the build (e.g. if buildozer was previously used). Removing this
directory should fix the problem, and is desirable anyway since you
don't want it in the APK.

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Errors related to Java version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This occurs due to a java version mismatch, it should be fixed by
installing Java 8 (e.g. the openjdk-8-jdk package on Ubuntu).
The errors listed below are related to Java version mismatch, it should be
fixed by installing Java 8.

java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :code:`java.lang.UnsupportedClassVersionError: com/android/dx/command/Main`
- :code:`java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder`
- :code:`java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema`

Also make sure you're running Java 8, on OS X::
On Ubuntu fix it my making sure only the :code:`openjdk-8-jdk` package is installed::

apt remove --purge openjdk-*-jdk
apt install openjdk-8-jdk

In the similar fashion for macOS you need to install the :code:`java8` package::

brew cask install java8


JNI DETECTED ERROR IN APPLICATION: static jfieldID 0x0000000 not valid for class java.lang.Class<org.renpy.android.PythonActivity>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit c842420

Please sign in to comment.