Error encountered while trying to extract emcli utility from EM 12c cloud control OMS Home:
[ora11g@monitorerp EMCLI]$ java -jar emclikit.jar client -install_dir=/u01/12c_Agent/EMCLI
Exception in thread "main" java.lang.ClassFormatError: oracle.sysman.emCLI.CLIInstallLaunch (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Cause:Expected version of java executable is not exists in PATH variable.
Solution:
=> Set JDK 1.6_u30 in PATH vriable and rerun the command it should execute without any errors
=> If java 1.6_uxx is not preset in your OS then please download and install it.
export PATH=/u01/sw_home/RPM_Home/java/jdk1.6.0_30/bin:/u01/HomeEM12c/12c_Home/oms/bin:/u01/HomeEM12c/12c_Home/oms/OPatch:$PATH
thanks,X A H E E R
Comments