Highlighted

Signing Tool Error signing the app

samoftheanna

29-09-2017

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!

Replies

Highlighted

samoftheanna

29-09-2017

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

Highlighted

Anthony_R

29-03-2018

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

Highlighted
Highlighted

Ivan_Mironchuk

Employee

11-04-2018

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)