Skip to content

Commit 24bf693

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 24bf693

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

doc/source/troubleshooting.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,26 @@ 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-
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).
151+
The errors listed below are related to Java version mismatch, it should be
152+
fixed by installing Java 8.
153153

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

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

159165
brew cask install java8
160166

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

0 commit comments

Comments
 (0)