Sign in to Community
Sign in to view all badges
When I try to sign an Android app, I first get an error: "sun.misc.BASE64Encoder"
If I try again, I get this error: "Could not initialize class com.adobe.devtech.tools.JarSigner"
I'm not sure if this is an issue on my side, but we would really like to get this app updated ASAP.
Thanks for any help!
I was able to get it to work by uninstalling Java 9 and making sure Java 1.8 was the default. I hope that isn't the long-term solution
Confirming that reverting from Java JDK 9 to Java JDK 8 fixed this error for me.
I reverted to java JDK 8 and I'm still getting this error.
The AEM Mobile signing tool supports either Java 7 or 8 due to sun.misc.BASE64Encoder being removed in Java 9.
For this reason you will need a maximum of JDK 8 installed and set as the default JDK i norder to use the signing tool.
See: Java Platform, Standard Edition Oracle JDK 9 Migration Guide, Release 9
Please ensure JDK is indeed configured to be the default since this error will not occur when using JDK 8.
If you launch terminal and type "java -version" what is your result?
It should be similar to:
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)