search cancel

GMU Error - java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder


Article ID: 242442


Updated On:


CA API Gateway


We get below error when we try to run the GMU locally from a Gateway.


bash-4.2$ ./ browse -z
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Decoder
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 8 more



Release : 10.1

Component :


Utilize the 10.1 equivalent GMU 1.8 which should be compliant with JDK11.

The mentioned class sun/misc/BASE64Decoder was removed in jdk 9+ which is utilized in gmu 1.7 and below. So you need to ensure version currency with the GMU tool running the equivalent version to the JDK and Gateway you are running with.