Expand my Community achievements bar.

Signing Tool Error signing the app

Avatar

Level 1

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!

6 Replies

Avatar

Level 1

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

Avatar

Level 3

Confirming that reverting from Java JDK 9 to Java JDK 8 fixed this error for me.

Avatar

Level 1

I reverted to java JDK 8 and I'm still getting this error.

Screenshot 2018-03-28 13.46.12.png

Avatar

Level 3

Please ensure JDK is indeed configured to be the default since this error will not occur when using JDK 8.

Avatar

Employee Advisor

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)

Avatar

Level 3

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