Skip to content

Commit a405bb7

Browse files
committed
Updates Java version troubleshooting
Adds the NoClassDefFoundError XmlSchema case and groups related cases together. Gives instructions for both Ubuntu and macOS to fix.
1 parent 2f98b81 commit a405bb7

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

doc/source/troubleshooting.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,28 @@ the build (e.g. if buildozer was previously used). Removing this
145145
directory should fix the problem, and is desirable anyway since you
146146
don't want it in the APK.
147147

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

151+
The errors listed below are related to Java version mismatch, it should be
152+
fixed by installing Java 8.
151153
This occurs due to a java version mismatch, it should be fixed by
152-
installing Java 8 (e.g. the openjdk-8-jdk package on Ubuntu).
154+
installing Java 8 (e.g. the :code:`openjdk-8-jdk` package on Ubuntu).
153155

154-
java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
155-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
156+
- :code:`java.lang.UnsupportedClassVersionError: com/android/dx/command/Main`
157+
- :code:`java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder`
158+
- :code:`java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema`
156159

157-
Also make sure you're running Java 8, on OS X::
160+
On Ubuntu fix it my making sure only the :code:`openjdk-8-jdk` package is installed::
161+
162+
apt remove --purge openjdk-*-jdk
163+
apt install openjdk-8-jdk
164+
165+
In the similar fashion for macOS you need to install the :code:`java8` package::
158166

159167
brew cask install java8
160168

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

0 commit comments

Comments
 (0)